Changes between Version 2 and Version 3 of NavAddPlugin


Ignore:
Timestamp:
Jul 14, 2006 9:17:50 AM (8 years ago)
Author:
otaku42
Comment:

Added section about sorting order; added table of contents; moved example section

Legend:

Unmodified
Added
Removed
Modified
  • NavAddPlugin

    v2 v3  
     1[[PageOutline(2-4)]] 
    12= Add custom items to main and meta navigation bar = 
    23 
     
    1920 `<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 
    2021 
     22=== Example === 
     23 
     24This 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. 
     25 
     26{{{ 
     27[navadd] 
     28add_items = imprint,download 
     29imprint.title = Impressum/Imprint 
     30imprint.url = /wiki/Impressum 
     31#imprint.perm = WIKI_VIEW 
     32imprint.target = metanav 
     33download.title = Download 
     34download.url = http://sourceforge.net/project/showfiles.php?group_id=82936&amp;package_id=85233 
     35#download.perm = WIKI_VIEW 
     36download.target = mainnav 
     37}}} 
     38 
     39== Ordering of buttons == 
     40 
     41It might be worth to note that buttons which are added with this plugin can be ordered in the usual way, i.e. by specifying the actual order in section `[trac]`, keywords `mainnav` and `metanav` in TracIni. 
     42 
     43=== Example === 
     44 
     45Let's assume that you add a button `Download` to your main navigation bar (same as in the configuration example above), and you want it to appear right after the `Wiki` button. The configuration then looks like: 
     46 
     47{{{ 
     48[trac] 
     49... 
     50mainnav = wiki,download,timeline,roadmap,browser,tickets,newticket 
     51... 
     52}}} 
     53 
    2154== Bugs/Feature Requests ==  
    2255 
     
    3568You can check out NavAddPlugin from [http://trac-hacks.org/svn/navaddplugin here] using Subversion, or [source:navaddplugin browse the source] with Trac. 
    3669 
    37 == Example == 
    38  
    39 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. 
    40  
    41 {{{ 
    42 [navadd] 
    43 add_items = imprint,download 
    44 imprint.title = Impressum/Imprint 
    45 imprint.url = /wiki/Impressum 
    46 #imprint.perm = WIKI_VIEW 
    47 imprint.target = metanav 
    48 download.title = Download 
    49 download.url = http://sourceforge.net/project/showfiles.php?group_id=82936&amp;package_id=85233 
    50 #download.perm = WIKI_VIEW 
    51 download.target = mainnav 
    52 }}} 
    53  
    54  
    5570== Recent Changes == 
    5671