wiki:NavControlPlugin

Version 1 (modified by tsooboi, 6 years ago) (diff)

New hack NavControlPlugin, created by tsooboi

NavControlPlugin

Description

Plugin to

  • Move navigation items between mainnav and metanav
  • Hide navigation items, and
  • Rename navigation items

Based on NavHiderPlugin. The components are left active, so you can still navigate to them directly (or from other links).

Bugs/Feature Requests

Existing bugs and feature requests for NavControlPlugin are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

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

Example

To activate:

[components]
navcontrol.* = enabled

To configure: To hide items you can list them under [navcontrol] section as follows:

[navcontrol]
mainnav = search, newticket
metanav = about

To move items you can list them under [navcontrol] section as follows:

[navcontrol]
mainnav_to_metanav = tickets, wiki
metanav_to_mainnav = help

To rename items you can list them under [navcontrol] section as follows:

[navcontrol]
labels = browser:Code, tickets:Tickets

OR

You can preface the item with - or ! in the normal sort-order list to hide and prefix with @ or ^ in the normal sort-order list to move:

[trac]
mainnav = @wiki,timeline,roadmap,browser,^tickets,!newticket,-search
metanav = login,logout,settings,^help,!about

Recent Changes

[4111] by tsooboi on 2008-08-02 20:10:58
Rolling back premature commit
[4110] by tsooboi on 2008-08-02 19:47:03
Changes to improve code efficiency
[4109] by tsooboi on 2008-08-02 15:32:39
changes to allow configuration via [trac] settings

Author/Contributors

Author: tsooboi
Contributors:

Attachments (1)

Download all attachments as: .zip