這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Glossary

外掛說明

Given a collection of glossary definition pages, automatically creates links in your page and post content for the words in your glossary.

Is smart enough not to create illegal nested links.

Works with php 4 and 5 (check out the FAQ for more info on using it with php 4).

Only tested on WordPress version 2.7.1 (although will most likely work on other versions).

A good example of the glossary in action is at this page. All of the “charter school” links were added dynamically by the glossary plugin.

螢幕擷圖

  • A dynamically created link to one of the glossary terms

安裝方式

  1. Upload glossary.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Create a main glossary page (example “Glossary”) with no body content
  4. In the plugin’s dashboard preferences, enter the main glossary page’s id#
  5. Create child pages of the main glossary page for each term you wish to define. The title of the page should be the term. The body content should be the definition.
  6. There are a handful of optional preferences available in the dashboard
  7. If you are using php 4, be sure to read teh FAQ.

常見問題集

Does my main glossary page need to be titled “Glossary”?

No. It can be called anything. Just be sure to enter the page’s id into the plugin’s preference dashboard.

Do I need to manually type in an unordered list of my glossary terms on the glossary page?

No. Just leave that page blank. The plugin creates the unordered list of terms automatically.

How do I add glossary terms?

Simply add a child page to your main glossary page. Title it the glossary term (ex. “WordPress”) and put the term’s definition into the body (ex. “A neato Blogging Platform”).

What if I need to add or change a glossary term?

Just add it or change it. The links for your glossary terms are added to your page and post content on the fly so your glossary links will always be up to date.

I use php 4 and I get all sorts of fatal errors. What gives?

You need to edit the glossary.php file. You will see a big chunk of commented out code that says it is for php 4. You need to uncomment that. Additionally, you will see a large chunk of code that says it is for php 5. You need to comment that out.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Glossary〉的開發相關工作。

參與者

將〈Glossary〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄