| 22 | === Example === |
| 23 | |
| 24 | 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. |
| 25 | |
| 26 | {{{ |
| 27 | [navadd] |
| 28 | add_items = imprint,download |
| 29 | imprint.title = Impressum/Imprint |
| 30 | imprint.url = /wiki/Impressum |
| 31 | #imprint.perm = WIKI_VIEW |
| 32 | imprint.target = metanav |
| 33 | download.title = Download |
| 34 | download.url = http://sourceforge.net/project/showfiles.php?group_id=82936&package_id=85233 |
| 35 | #download.perm = WIKI_VIEW |
| 36 | download.target = mainnav |
| 37 | }}} |
| 38 | |
| 39 | == Ordering of buttons == |
| 40 | |
| 41 | It 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 | |
| 45 | Let'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 | ... |
| 50 | mainnav = wiki,download,timeline,roadmap,browser,tickets,newticket |
| 51 | ... |
| 52 | }}} |
| 53 | |
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&package_id=85233 |
50 | | #download.perm = WIKI_VIEW |
51 | | download.target = mainnav |
52 | | }}} |
53 | | |
54 | | |