Linux 软件免费装

Ajax Category Dropdown

开发者 Dyasonhat
更新时间 2009年5月10日 01:11
PHP版本: 2.7 及以上
WordPress版本: 2.7.1

标签

widget ajax categories select level dropdown multi

下载

0.1.0 0.1.1 0.1.2 0.1.3 0.1.5

详情介绍:

Generates a multi-level (multiple select boxes) AJAX populated category dropdown widget. Perfect for blogs with large numbers of categories as it only loads category sub levels via AJAX as the user selects parent categories. The plugin automatically detects how many sublevels of categories your blog has and shows a form with the corresponding number of select boxes, as a user selects from the first select box is populates the second with sub categories of the first etc. A real world example would be a blog that's category structure is based on towns eg. State, City, Suburb Administrators can customize the text in the different level of select boxes. eg "Select a State" for the first level and "Select a city" for the second level. Support forum at forums.dyasohat.com The plugin will also detect the current category and load it's subcategories automatically. Please note this plugin is a beta release, it's probably still got a few bugs but's not likely to break your blog, so test it out and let me know what TLC it needs. Future Versions (most of the code for this exists already but needs a bit more work before I enable these features):

安装:

This section describes how to install the plugin and get it working. e.g.
  1. Unzip the file and upload entire dhat-ajax-cat-dropdown folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Go to the widgets page and add the Ajax Category Dropdown widget to your sidebar. Configure the widget options.

常见问题:

How can I include the widget into a theme template file?

The plugin is widgetized and you can simply add the widget to your side bar. Alternatively you can call the dropdown any where in you theme by including the following. NB: This function is not active yet. �?php if (class_exists('dhat_ajax_cat_dropdown')) { $dacd = new dhat_ajax_cat_dropdown(); if (method_exists($dadc,'place_widget_dacd')) { $wdadc->place_widget_dacd(); } } ?�

更新日志:

09-05-2009 0.1.5 Version stable, no serious bugs reported Added options to widget to show/hide count Added options to widget to choose what to count ie: posts, sub cats etc Added options to widget to choose how to sort the categories in the select boxes. 21-04-2009 Version 0.1.1b Fixed folder naming issue 19-04-2009 Version 0.1.0b Beta Testing Release