Changes between Version 8 and Version 9 of TracNavigation
- Timestamp:
- 10/05/2023 07:15:52 AM (14 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracNavigation
v8 v9 9 9 10 10 11 ** [=#Example Example] ** 11 ** [=#Example Example] ** 12 12 13 13 In the following example we rename the link to WikiStart //Home//, and make the //View Tickets// entry link to a specific report. … … 23 23 `[metanav]` corresponds to the '''meta navigation bar''', by default positioned above the main navigation bar and below the ''Search'' box. It contains the ''Login'', ''Logout'', ''!Help/Guide'' etc. entries. This navigation bar is meant to access some global information about the Trac project and the current user. 24 24 25 There is one special entry in the `[metanav]` section: `logout.redirect` is the page the user sees after hitting the logout button.The ''!Help/Guide'' link is also hidden in the following example.25 There is one special entry in the `[metanav]` section: `logout.redirect` is the page the user sees after hitting the logout button. The ''!Help/Guide'' link is also hidden in the following example. 26 26 [[comment(see also #Trac3808)]] 27 27 28 ** Example ** 28 ** Example ** 29 29 30 30 {{{#!ini … … 63 63 }}} 64 64 65 Attributes of the navigation item that are not overridden by the configuration will be preserved. 65 Attributes of the navigation item that are not overridden by the configuration will be preserved. 66 66 67 67 === URL Formats … … 98 98 99 99 === Permissions #nav-permissions 100 The `permission` attribute controls the visibility of the navigation item on the navigation bar. This is mainly useful for new entries in the navigation bar. Note that it does not provide access control to the URL that the navigation item directs to, and cannot override permission checks done by Trac and plugins. 100 The `permission` attribute controls the visibility of the navigation item on the navigation bar. This is mainly useful for new entries in the navigation bar. Note that it does not provide access control to the URL that the navigation item directs to, and cannot override permission checks done by Trac and plugins. 101 101 102 102 For example, the //Roadmap// navigation item will only display for users with `ROADMAP_VIEW`. Adding the attribute `roadmap.permission = MILESTONE_VIEW` will require both `ROADMAP_VIEW` and `MILESTONE_VIEW` for the entry to be visible, but as noted will not provide access control for the `/roadmap` path. TracFineGrainedPermissions should be used for access control to modules provided by Trac and plugins.