Edgewall Software

Opened 11 years ago

Last modified 4 years ago

#11317 closed enhancement

Allow navigation items to be added through the mainnav or metanav sections — at Version 10

Reported by: Ryan J Ollos Owned by:
Priority: normal Milestone: 1.3.2
Component: general Version:
Severity: normal Keywords: navigation
Cc: leho@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Ryan J Ollos)

As mentioned at the bottom of the TracNavigation page, ​NavAddPlugin or ​MenusPlugin are still needed in order to add items to the navigation bars. It would be nice to be able to add new items that are defined in the mainnav and metanav sections, and without the use of plugins.

Two other features to consider:

  • NavAddPlugin allows a permission to be specified for controlling visibility of the nav item.
  • It would be useful to allow items to be moved between the metanav and mainnav by putting to item to the corresponding section of trac.ini ([mainnav] and [metanav]).

Change History (10)

comment:1 by lkraav <leho@…>, 11 years ago

Cc: leho@… added

comment:2 by lkraav <leho@…>, 10 years ago

what are we thinking here @rjollos? probably an admin panel? or just improved handling of unknown [mainnav] config items?

Last edited 7 years ago by Ryan J Ollos (previous) (diff)

in reply to:  2 comment:3 by Ryan J Ollos, 9 years ago

Replying to lkraav <leho@…>:

what are we thinking here @rjollos? probably an admin panel? or just imnproved handling of unknown [mainnav] config items?

First, providing support for adding unknown [mainnav] items. Eventually, add an admin panel.

comment:4 by lkraav <leho@…>, 9 years ago

th:NavAddPlugin is working well for me so far. shouldn't be difficult to import that code into core. are you aware of any shortcomings with it?

comment:5 by Ryan J Ollos, 9 years ago

Unfortunately the code in th:NavAddPlugin doesn't provide a useful starting point. One major defect is that the active navigation item is not highlighted (th:#592). When implementing the feature in Trac we'll need to define the extra navigation items in the [mainnav] and [metanav] sections. The code will need to be implemented in Chrome.prepare_request().

I have a PoC of the feature that I'll post in a short while along with some issues that need to be solved.

Last edited 9 years ago by Ryan J Ollos (previous) (diff)

comment:6 by Ryan J Ollos, 9 years ago

Initial implementation in log:rjollos.git:t11317. The active navigation item is not highlighted, so more work is needed.

comment:7 by Ryan J Ollos, 9 years ago

Owner: Ryan J Ollos removed

comment:8 by Ryan J Ollos, 8 years ago

Milestone: next-dev-1.1.xnext-dev-1.3.x

comment:9 by Ryan J Ollos, 7 years ago

Description: modified (diff)

comment:10 by Ryan J Ollos, 7 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.