5 | | Adds a button to the main navigation bar and serves a page in the Trac template with an Iframe linking to the appropriate URL. This will work for any number of URLs specified in the proper format. |
6 | | |
7 | | The following trac.ini configuration will create 2 new tabs on the main navigation bar, one named ''Google'' and the other named ''My Blog'', with the respective URLs and permissions (e.g. Google requires WIKI_VIEW while !MyBlog requires TRAC_ADMIN). |
8 | | |
9 | | {{{ |
10 | | [components] |
11 | | tractab.*=enabled |
12 | | |
13 | | [tractab] |
14 | | names=Google,My Blog |
15 | | urls=http://www.google.com,http://blogs.acceleration.net/russ |
16 | | perms=WIKI_VIEW,TRAC_ADMIN |
17 | | }}} |
18 | | |
19 | | * Note: The ''perms'' parameter is optional, but if left unspecified, it requires TRAC_ADMIN permissions to view the tabs. |
20 | | * Note: The parameter lists are sensitive to whitespace. No whitespace should exist between comma separated entries, although an entry can contain whitespace (e.g. ''My Blog''). |
| 5 | Adds a button to the main navigation bar and serves a page in the Trac template within an Iframe linking to the appropriate URL. This will work for any number of URLs specified in the proper format. |
50 | | See the above example configuration. |
| 35 | The following trac.ini configuration will create 2 new tabs on the main navigation bar, one named ''Google'' and the other named ''My Blog'', with the respective URLs and permissions (e.g. Google requires WIKI_VIEW while !MyBlog requires TRAC_ADMIN). The handlers for these items will be `/tractab/Google` and `/tractab/My%20Blog`. |
| 36 | |
| 37 | {{{ |
| 38 | [components] |
| 39 | tractab.*=enabled |
| 40 | |
| 41 | [tractab] |
| 42 | names=Google,My Blog |
| 43 | urls=http://www.google.com,http://blogs.acceleration.net/russ |
| 44 | perms=WIKI_VIEW,TRAC_ADMIN |
| 45 | }}} |
| 46 | |
| 47 | * Note: The ''perms'' parameter is optional, but if left unspecified, it requires TRAC_ADMIN permissions to view the tabs. |
| 48 | * Note: The parameter lists are sensitive to whitespace. No whitespace should exist between comma separated entries, although an entry can contain whitespace (e.g. ''My Blog''). |