Move and add custom navigation items to the Trac navigation bars

Description

This plugin lets you move navigation items between the meta and main Trac navigation bars.

Additionally it lets you configure custom navigation items.

Only one navigation bar can be active at a time, the other is completely hidden.

Configuration

By default all meta navigation items are moved into the main navigation bar.

You can override this with configuration items in the [navmover] section of TracIni:

move_to=<bar>
The navigation bar to move items to, either mainnav or metanav.
move_items=<item>,<item>,...
The items to move. eg. settings, logout, blog.

Custom navigation items are added in a manner similar to Trac's custom ticket fields:

<item> = <title>
Define a new item with the given button title.
<item>.url = <url>
The URL the button should point to.
<item>.permission = <perm>
The Trac permission required to view this button (optional).

Bugs/Feature Requests

Existing bugs and feature requests for NavMoverPlugin are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

You can check out NavMoverPlugin from here using Subversion, or browse the source with Trac.

Example

[navmover]
move_items = settings,logout,account
move_to = mainnav
newblog = New Blog Post
newblog.url = http://trac-hacks.org/blog/new
newblog.permission = TRAC_ADMIN

Recent Changes

[667] by athomas on 04/16/06 18:12:08

NavMoverPlugin:

Added ability to add custom nav items.

[666] by athomas on 04/16/06 17:44:42

NavMoverPlugin:

Spurious debug statement eradicated.

[665] by athomas on 04/16/06 17:36:41

NavMoverPlugin:

Now allows movement to either meta or main nav bar.

Author/Contributors

Author: athomas
Contributors: