wiki:MenusPlugin

Version 11 (modified by Catalin BALAN, 9 years ago) (diff)

--

MenusPlugin

Notice: This plugin is unmaintained and available for adoption.

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 [download:menusplugin 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
# 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 is a reserved keyword:
# - if present, all other items not specified in config section will appear as sub-items under unassigned item. 
# - if not present, all other items will appear as top items.
unassigned.href=/wiki
unassigned.label=Tools
...

Screenshots

Recent Changes

16734 by rjollos on 2017-08-21 09:09:33
TracMenusPlugin 0.2.0: Restore missing styles

Fixes #13018, #11727.

16733 by rjollos on 2017-08-21 09:05:05
TracMenusPlugin 0.2.0: Upgrade superfish and hoverIntent

This adds basic support for Trac >= 1.2.
The CSS needs improvement. Patches welcome.

Fixes #13018, #11727.

16522 by rjollos on 2017-04-16 01:55:28
Fix indentation
(more)

Author/Contributors

Author: cbalan
Contributors:

Attachments (1)

Download all attachments as: .zip