wiki:MenusPlugin

Version 9 (modified by izzy, 6 years ago) (diff)

--

MenusPlugin

Description

PS: - CSS work might be needed to fit your trac theme.

Demo

See it in action: http://code.optaros.com/trac/oforge/

Bugs/Feature Requests

Existing bugs and feature requests for MenusPlugin are here.

If you have any issues, create a new ticket.

Download, Source

Download the zipped source, check out MenusPlugin from using Subversion, or browse the source with Trac.

Example

Demo config:

...
[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

# Add some reports to the ticket item
special_report.parent=tickets
special_report.href=/report/7
special_report.label=My Tickets
# this is no component - so to hide it if not available, we need a trick
special_report.perm=REPORT_VIEW

# Some more things
wiki.parent=top
browser.parent=top

unassigned.href=/wiki
unassigned.label=Tools
...

Screenshots

Recent Changes

[12147] by rjollos on 2012-10-11 02:42:02
Refs #10133: Added else case so that logic is the same as before [12145].
[12146] by rjollos on 2012-10-11 02:31:51
Refs #10133: Removed unnecessary continue statements.
[12145] 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.

Author/Contributors

Author: cbalan
Contributors:

Attachments (1)

Download all attachments as: .zip