|Version 10 (modified by izzy, 5 years ago) (diff)|
- add items to navigation menus
- hierachical organization(using Superfish - http://users.tpg.com.au/j_birch/plugins/superfish/ )
PS: - CSS work might be needed to fit your trac theme.
See it in action: http://code.optaros.com/trac/oforge/
If you have any issues, create a new ticket.
... [components] tracmenus.* = enabled [mainnav] # Create a new top-level element for "Team Tools" teamtools.parent = top teamtools.label = Team Tools # Do not display this menu if it has no children (e.g. visitor has no permission to any) teamtools.hide_if_no_children = 1 # Now add the discussion plugin here discussion.parent = teamtools # Hide it if it's not available discussion.hide_if_disabled = 1 # Add the worklog here as well worklog.parent = teamtools worklog.hide_if_disabled = 1 # Add more things... #... # rename "Browse Source" to "Code" browser.label = Code # Add some entry points to the code browser code_trunk.parent=browser code_trunk.href=/browser/trunk code_trunk.label=Trunk # this is no component - so to hide it if not available, we need a trick code_trunk.perm = BROWSER_VIEW # Add some reports to the ticket item special_report.parent=tickets special_report.href=/report/7 special_report.label=My Tickets # same trick as above required here special_report.perm=REPORT_VIEW # Some more things wiki.parent=top browser.parent=top unassigned.href=/wiki unassigned.label=Tools ...
-  by rjollos on 2012-10-11 02:42:02
Refs #10133: Added else case so that logic is the same as before .
-  by rjollos on 2012-10-11 02:31:51
Refs #10133: Removed unnecessary continue statements.
-  by rjollos on 2012-10-11 02:26:10
Fixes #10133: Don't show entries in the navigation bar if a label with a link element is not defined.