= Add custom items to main and meta navigation bar = == Description == This plugin allows you to add custom items ("buttons") to both the main and the meta navigation bar. Item name, title and URL can be specified in trac.ini, as well as an optional permission the user is required to have to see the item. The plugin was inspired by and derived from NavMoverPlugin. In contrast to NavMoverPlugin this plugin does not hide navigation bars, which was my main motivation for creating this "fork". == Configuration == All configuration settings are to be kept in a section called `[navadd]` in TracIni. The basic syntax is: `add_items = ,,...`:: comma-separated list of items that will be added; only items that are listed here will be processed. And then for each item: `.title = `:: the name (title) of the button `<item>.url = <url>`:: the URL the button should link to; please note that TracLinks syntax is not supported here yet `<item>.perm = <permission>`:: an optional permission that a user needs to have in order to see the button `<item>.target = <navbar_name>':: the name of the navigation bar the button should be added to; only `mainnav` and `metanav` have been tested so far, others names probably work as well == Bugs/Feature Requests == Existing bugs and feature requests for NavAddPlugin are [report:9?COMPONENT=NavAddPlugin here]. If you have any issues, create a [http://trac-hacks.org/newticket?component=NavAddPlugin&owner=otaku42 new ticket]. == Download == Download the zipped source from [download:navaddplugin here]. == Source == You can check out NavAddPlugin from [http://trac-hacks.org/svn/navaddplugin here] using Subversion, or [source:navaddplugin browse the source] with Trac. == Example == This is the configuration I use on [http://madwifi.org madwifi.org] to add a link to the imprint in the meta navigation bar, and a link to our download section on sf.net in the main navigation bar. {{{ [navadd] add_items = imprint,download imprint.title = Impressum/Imprint imprint.url = /wiki/Impressum #imprint.perm = WIKI_VIEW imprint.target = metanav download.title = Download download.url = http://sourceforge.net/project/showfiles.php?group_id=82936&package_id=85233 #download.perm = WIKI_VIEW download.target = mainnav }}} == Recent Changes == [[ChangeLog(navaddplugin, 3)]] == Author/Contributors == '''Author:''' [wiki:otaku42] [[BR]] '''Contributors:'''