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

TabberList

外掛說明

TabberList allows you to organise your many lists into a cool tabbed display on any page or post. The tabs are javascript-powered and the default skin uses Sean Catchpole’s awesome idTabs.

The plugin is skinnable – you can add custom css and javascript and really make them your own. It also features the ability to mark out new items and to strikethrough old items.

You can limit the categories by using the attribute ‘cat’ and a comma-separated list of the ids of the categories you want to include in the shortcode. e.g.

[tabberlist cat=1] [tabberlist cat=1,2,5] 

You can also set a default title for the list in the admin panel and this can be over-ridden using the ‘title’ attribute as follows:

[tabberlist title='Here is a Custom List Title'] [tabberlist cat=1,2,5 title='A title just for these categories'] 

螢幕擷圖

安裝方式

  1. Upload the contents of tabberlist to the /wp-content/plugins/ directory
  2. Activate the plugin through the Plugins menu in WordPress
  3. Go into your WP Dashboard and, under the ‘Settings’ menu, you’ll see an option for ‘TabberList’
  4. Create some categories and items.
  5. In either a post or a page, use the shortcode [tabberlist] and it will drop in the list automagically.

常見問題集

I can delete categories, but I can’t delete list items. What gives?

Yeah, bit inconsistent here – I’ll improve it in later versions. To delete categories, check the delete box and save changes. To delete list items, simply delete the content from the ‘item’ text field and save changes. The plugin will detect the empty field and remove the corrseponding database entry.

Eeep. I tried to select individual categories in the shorttag and now I’m getting crazy foreach warnings appearing on my blog

It’s cause the id you’re using in the shorttag isn’t a valid category ID. If you look in Settings->TabberList and hit the Edit Categories tab, you’ll see the available IDs down the side. Use those numbers instead and that should fix it.

Dude! This rocks! How do I start making skins for it?

Probably the easiest way is to make a copy of the ‘default’ skin folder located in wp-content/plugins/tabberlist/skins. Inside that you’ll find three files (2 css and 1 javascript) and an images folder. Put any images you want to use in the images folder, then start editing your CSS/js files.

The skin.css file has all of the available classes laid out for you already in a (hopefully) easy to use skeleton structure.

The ie.css is any specific styling that you might need for IE 6.

The skin.js file contains the JabaScript that controls the tabs. I’ve used Sean Catchpole’s idTabs, but you can delete this and use whatever takes your fancy.

Once you’re done editing, send me a message over at http://www.line-in.co.uk – I’d love to see what you’ve made!

使用者評論

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

參與者及開發者

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

參與者

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

對開發相關資訊感興趣?

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

變更記錄

1.0.4

  • Minor CSS changes for a more consistent display across themes
  • Fixed the foreach() errors that happen when there are no defined categories/list items
  • IE6 CSS bug fixes for the default skin

1.0.3

  • Addresses some conflict issues

1.0.2

  • Changed the default skin to something a little more generic

1.0.1

  • Added support for ie6 specific stylesheet

1.0.0

  • First release