=== WordPress Navigation Tool (NAVT) === Contributors: gbellucci, et_ux Donate link: http://www.gbellucci.us Tags: menu, navigation, lists, pages, categories, plugins, widgets, sidebar Requires at least: 2.1 Tested up to: 2.1.3 Stable tag: 94rc2 Create, organize and manage your WordPress menus and navigation lists by logically grouping your pages and categories via a drag'n drop interface. == Description == = Background = Web site navigation links on your WordPress blog are typically constructed using HTML unnumbered lists (UL and LI tags) and styled by your theme's cascading style sheet. The WordPress software provides theme designers with a few basic functions that collect, format and display specific types of lists in your blog. As an example, the list containing your pages that are displayed as the horizontal menu above or below your web site header; the list of categories vertically displayed in your sidebar. Page lists and category lists are just two of the 'standard' list types that WordPress themes generally make available for navigation. Lists provide the means by which users traverse your site and without them every web site would be one very long and seemingly endless page. WordPress provided lists however, are confined to supplying only one type of object per list - all categories, all pages or all of 'something else'; never a combination of object types. From a programming point of view, providing a list of same-objects is the preferred direction to take; primarily because of the sheer number of possible list permutations that one might be expected to provide. If you want or need something that is 'situational', you can always modify your theme and make yourself happy. For some, that isn't a problem but others may be more inclined to just look for a different theme that comes very close to what they want. Unfortunately, finding a theme that is capable of displaying the navigation list that YOU have in mind is virtually impossible. = About the Plugin = The __WordPress Navigation Tool (NAVT)__ plugin is designed to provide YOU with complete control over the contents of your navigation links. The plugin gives you the ability to create unique navigation lists and arrange the items within the list in any order required - regardless of the theme. * One or more lists can be created from any combination of pages and categories. * Items within any navigation list can be arranged in any arbitrary order. * List item names can be shown using a name that differs from the name used in the database. * Navigation lists are theme 'independent' and reusable. * Ample css classes provided for menu styling. * Single interface function call. * Comes with a companion sidebar module for widgetized themes allowing for zero coding. * Drag and drop interface for easy visualization of your menus and quick changes. * Built-in user guide with screenshots, examples and suggestions. * Compatible with the Word Press 2.1, [K2 theme](http://getk2.com/ "K2 Blog") v0.95rc-1 (and higher), [SideBar Module Plugin](http://nybblelabs.org.uk/ "Plugin Homepage") V1.0 (and higher) * Compatibility tested with IE6/IE7, Firefox 2.0.0.3, Opera 9.10 (_all pc browsers only_) _For the programmer_, the plugin provides a single interface function similar to the WordPress function __wp\_list\_pages__ . The interface routine returns a HTML formatted unnumbered list containing the category and/or page items configured within a user defined list called Navigation Group. _For the non-programmer_, the plugin comes with a convenient companion sidebar module that can be incorporated into your __widgetized theme__. = Interface = The plugin provides a __drag 'n drop__ interface minimizing the need to use your keyboard. Navigation lists can be created and edited using your mouse along with a few keystrokes. Using this plugin with the companion sidebar module provides you with the ability to __reorder and change your navigation lists on your web site without changing one line of code in your theme__ (_when used with the companion sidebar module_). It also means that you can change themes and retain your site navigation. = Built-in User Guide = The plugin provides an extensive built-in user guide to help you to understand how to use the plugin interface, provides an explanation for the terminology used and offers suggestions and examples for use with the companion sidebar module. == Installation == 1. Download the plugin. 1. Unzip the file into the WordPress directory: `/wp-content/plugins/` - The plugin resides in its own directory. 1. Activate the NAVT plugin from the Word Press plugin page. 1. After plugin activation, go to the `Manage` menu and select the menu tab: __NAVT Lists__ to use the plugin. 1. From the plugins admin page, select __Plugin Help__ to read the built-in user guide. The `doc` directory contains a single page manual explaining the PHP interface function call syntax. The `modules` directory contains a document explaining what to do with the companion sidebar module. = Release Notes = *__.94rc2__ - _April 11, 2007_ >Fixed a problem with serializing UTF-8 character strings by Javascript for use by PHP. Incorrect character byte length calculations probably resulting in navigation lists that would not save. (Hopelessly broken plugin! for non-english character sets) This would have been true if you use European (except ASCII), Arabic, Hebrew, Indic, Thai, certain symbols (such as the euro symbol), Chinese, Japanese, Korean character sets. *__.94rc1__ - _April 7, 2007_ >Fixed a problem in determining the current page item in the navigation lists. Bumped the version number. *__.93rc4.2__ - _April 5, 2007_ >More updates to this readme text. *__.93rc4.1__ - _April 4, 2007_ >Update of this readme text. *__.93rc4__ - _April 4, 2007_ >Added missing title= to login/admin href in navigation list. Update of this readme text with more detailed information and screen shots. *__.93rc3__ - _April 3, 2007_ >Built-in help information was moved to its own page. Reading the additional text for the help causes IE 7 to display this message: >__"A script on this page is causing Internet Explorer to run slowly. If it continues to run, your computer may become unresponsive. Do you want to abort the script?"__ >to avoid the issue completely, I've changed the way the help is displayed. *__.93rc2__ - _April 2, 2007_ >Initial release candidate available from the plugin repository. == Frequently Asked Questions == = Does the Sidebar Module work with the WordPress Widgets Plugin? = __No.__ The NAVT sidebar module was written to work with the [SideBar Module Plugin (SBM)](http://nybblelabs.org.uk/ "Plugin Homepage") written by Ben Sherratt because it allows multiple copies of a widget to be used in a theme. Using multiple copies of the NAVT sidebar module makes it possible to create and use a variety of different navigation lists under different circumstances on a single web site. For example, a NAVT module could be used for the web site's top navigation bar. In addition, one or more could be used for sidebar navigation. The SBM plugin also makes it possible to use a NAVT module containing a navigation list only on designated pages or while displaying a particular post or category. You can create and use additional navigation lists (menus) on topic-oriented pages or within specialized categories. The SBM plugin also supports widgets written for the Word Press Widget plugin so there is no loss of functionality. = The NAVT Admin menu appears on the plugin page, what is that for? = Two NAVT menu entries are added to WordPress by the plugin. The menu tab that appears on the `Manage` page is used to manage your navigation lists. The menu tab on the plugin page is used to cleanly remove the NAVT plugin data from your WordPress database prior to deactivating the plugin for eventual removal. It can also be used to completely reset the plugin data so you can create a new set of navigation lists. _If you wish to deactivate the plugin but don't want to lose your navigation list definitions then don't use this feature._ = I changed a page title and a category name but the menu entry on my web site was not changed. = Menu tab titles or items that appear in your list names are not directly linked to your page titles and category names. Instead, the name that appears in your tabbed menus or lists is an alias and is changed by modifying the menu alias for the item in the NAVT plugin. Initially, the menu alias is taken from the page title or category name. However, if you change the page title or category name via __`Manage` » `Pages`__ or __`Manage` » `Categories`__, the menu tab or list entry __will remain unchanged__ until you change the menu alias. The inverse is also true. Changing the menu alias will not affect the actual page title or category name as it is stored in the database. = Oh No Mr. Bill! Some of my categories are not showing up in my category list. = I'm assuming that the categories that are _missing_ are used in a menu or list you created using the NAVT plugin. Categories that appear as part of a navigation list created using the NAVT plugin are, by default, __excluded__ from the normal list of categories displayed by your WordPress template. _This is by design._ In addition, if a category contains sub-category entries, the sub-categories will also be excluded from your category list. Because the parent category appears as part of another navigation list on the web site, including the category in the normal category navigation list can appear 'confusing' to visitors. _If you want categories to be included in your list of categories:_ 1. Click on the name of the category menu item, a box will open to reveal the menu item options. 1. Select the checkbox: __Show in category list__. 1. Click the __ok__ button. The category will now appear in __both__ locations. = WordPress can display the number of posts in a category by appending the count to the end of the name. Can I do that with this plugin? = __Yes.__ One of the menu item options enables this feature: 1. Click on the name of the category menu item, a box will open to reveal the menu item options. 1. Select the checkbox: __Append post count__. 1. Click the __ok__ button. It is also possible to style the count independently of the category list item. Add the class 'catcount' to your theme's style sheet. = I can't fit all of my menu items across the top of the page. I have to rename my categories and pages to make my menu look right. = Using this plugin makes it possible to leave the names of your categories and the titles of your pages intact and change only the names that are displayed in your menu. How? Change the menu item alias for the menu item. The menu item alias is initially the name you've given a category or page but you can change the alias and not affect the actual category or page title. 1. Click on the name of the category menu item, a box will open to reveal the menu item options. 1. Type in the new name in the textbox provided. (_No spaces, alphanumeric only at least 2 characters in length_). 1. Click the __ok__ button. Your menu tab will contain the new name. = How do I create a menu on the top of my web site and one on the sidebar? = 1. Begin by creating a navigation list called _navbar_ from the __NAVT Lists__ page. Drag the page or categories from the _unassigned_ group and drop them into the _navbar_ group. Put them in the order you want them to appear on the page. __Apply__ your changes when you're done. 1. Create a second navigation group called _sidebar_. Drag the pages or categories from the _unassigned_ group and drop them into the _sidebar_ group. __Apply__ your changes. 1. __If you are not using the companion sidebar module__ : * add the function call `navt_getlist('navbar');` to the location in your Word Press template (_usually header.php_) where the navbar is to be displayed. * add the function call `navt_getlist('sidebar');` to the location in your template (_usually sidebar.php_) where the sidebar navigation list is to be displayed. 1. __If you are using the companion sidebar module__ : * Locate the `NAVT Companion Sidebar Module` in the list of available modules on your __SBM plugin administration page__. * Add the `navt module` to the dynamic sidebar column that will be used for your _navbar_ menu. * Click the newly added `navt module` and configure it to use the _navbar_ navigation group by selecting _navbar_ from the __dropdown list__. * Turn __off__ the display __title__ option and click __Save__. * Add another copy of the `navt module` to a dynamic sidebar to be used for your _sidebar_ menu - provide it with a meaningful name (title). * Configure the second `navt module` to use the _sidebar_ navigation list using the dropdown list. * Leave the title __on__ . * Click __Save__. Add the necessary menu styles to your template stylesheet. Styling information is provided in [style notes](http://wordpress.org/extend/plugins/wordpress-navigation-list-plugin-navt/other_notes) = My K2 theme 'loves me like a kitten'. How can I use this plugin to display a navbar at the top of my K2 theme? = The following code snippet is from the __K2-095rc1__ source code. The statements shown here begin on __line 75 of the K2 header.php file__

_________ __Modify the code above to look like the snippet below.__ _Note the conditional statement that surrounds the K2 UL with the class "menu"_.
__________ The additional code assumes you've used the NAVT plugin to create the navigation group __navbar__. If you are not using the NAVT plugin, the code above will use the standard K2 navbar, otherwise it will use the __navbar__ group you created with the NAVT plugin. If you've changed your __home__ menu tab to read something other than __home__ in your K2 theme, you can change the __menu alias__ from the NAVT plugin for the __home__ menu item to your preferred menu tab name. You can also add the __login__ menu item to your __navbar__ group to have the __login__ or __admin__ menu item displayed as it is in the K2 theme; or leave it out and put it somewhere else. = Where can I find Help? = The directory __doc__ contains: navt\_manual.html. Open this file with your browser, it is a single page manual explaining the syntax for the plugin PHP interface function call. The __modules__ directory contains: navt\_module.html. This document provides the information necessary to use the NAVT companion sidebar module. The best place to get help for the plugin is directly from the plugins administration page. Once you've installed and activated the plugin, go to the WordPress Manage menu and locate the menu tab __NAV Lists__. On the right side of the page is the __Plugin Help__ link. The help facility explains how to use the plugin. == Screenshots == 1. The Navigation Tool Administration page initially displays all of your categories and pages in default Navigation Group called __Unassigned__. The Home and Login items are provided. 2. Create a new Navigation Group to be used as the _navbar_ at the top of your web blog. 3. Begin dragging and dropping items from the __Unassigned__ group into your new navigation group. Position the items where you want them to appear in your navbar. Items can be any page or category shown. 4. The name of the item that appears in your navbar can be tailored to suit your needs and available real estate. Categories have addition options like appending the number of posts after the category name. 5. Create an addition sidebar navigation group. Move items into the new group from other groups or from the __Unassigned__ group. 6. Your new navigation groups are ready to use in your theme. Use the companion sidebar module to change or move navigation lists without programming. == Style Information == The NAVT plugin applies ample class information in your navigation list enabling you to build horizontal and vertical menus. The plugin follows the class conventions established by the Word Press function call __wp\_list\_pages__ but with a couple of minor twists. The navigation list UL tag is always assigned the class `menu`. In addition, the UL tag is assigned a class that matches the __name of the navigation list__. For example, a navigation group called __navbar__ will have the following class information applied: >`