Changes between Version 2 and Version 3 of 1.3/TracNavigation
- Timestamp:
- Apr 10, 2017, 10:53:44 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
1.3/TracNavigation
v2 v3 3 3 The main and meta navigation entries can be customized in several ways. The `[mainnav]` and `[metanav]` configuration sections can be used to customize the navigation item text and link, change the ordering of the navigation items, disable them and add new ones. 4 4 5 The primary attributes whichcan be customized are `href`, `label`, `order` and `permission`.5 The primary attributes that can be customized are `href`, `label`, `order` and `permission`. 6 6 7 7 === `[mainnav]` #mainnav-bar … … 11 11 ** [=#Example Example] ** 12 12 13 In the following example we rename the link to WikiStart //H OME//, and make the //View Tickets// entry link to a specific report.13 In the following example we rename the link to WikiStart //Home//, and make the //View Tickets// entry link to a specific report. 14 14 {{{#!ini 15 15 [mainnav] … … 18 18 }}} 19 19 20 Note the entries on the main navigation are displayed in uppercase regardless of the casing of the `label` .20 Note the entries on the main navigation are displayed in uppercase regardless of the casing of the `label`, unless this aspect of the styling is overridden through [TracInterfaceCustomization#SiteAppearance interface customization]. 21 21 22 22 === `[metanav]` #metanav-bar … … 39 39 to the navigation. A new entry can be defined by providing a name with value `enabled`. At a minimum, the `href` attribute should be specified to define a useful navigation entry. If the `label` attribute is not defined the entry's name will be used for the label. 40 40 41 The following example creates two new navigation items, one named //M Y REPORTS// and the other named //builds//. //My Reports// is only visible to users with `REPORT_VIEW` permission.41 The following example creates two new navigation items, one named //My Reports// and the other named //builds//. //My Reports// is only visible to users with `REPORT_VIEW` permission. 42 42 {{{#!ini 43 43 [mainnav] … … 56 56 === Relocating Entries #nav-relocating-entries 57 57 58 Navigation entries provided by Trac and plugin can be moved from the meta navigation bar to the main navigation bar, and vise-versa. The entry should be defined in the desired category as if it was a new entry, but existing attributes of the navigation item will be preserved. For example, to move the //Admin// entry to the metanav and rename it to //Administration//:58 Navigation entries provided by Trac and plugins can be moved from the meta navigation bar to the main navigation bar, and vise-versa. The entry should be defined in the desired category as if it was a new entry. For example, to move the //Admin// entry to the metanav and rename it to //Administration//: 59 59 {{{#!ini 60 60 [metanav] … … 62 62 admin.label = Administration 63 63 }}} 64 65 Attributes of the navigation item that are not overridden by the configuration will be preserved. 64 66 65 67 === URL Formats … … 102 104 === Context Navigation #ctxtnav-bar 103 105 104 Note that it is still not possible to customize the '''contextual navigation bar''', i ethe one usually placed below the main navigation bar.106 Note that it is still not possible to customize the '''contextual navigation bar''', i.e. the one usually placed below the main navigation bar. 105 107 106 108 ----