Emmanuel Blot wrote:
If you disable some modules, the corresponding entry will disappear
from the mainnav or metanav.
For example:
[components]
trac.Settings.* = disabled
will remove the "settings" menu item (and obvioulsy the settings feature)
If you want to add a new item to the metanav bar, create a plugin that
implements the INavigationContributor interface, and implements the
interface methods:
# INavigationContributor methods
def get_active_navigation_item(self, req)
def get_navigation_items(self, req)
Have a look at Settings.py for example.
There is an option in trac.ini to change the order of appearance (left
to right) of the main nav item, I'm not sure if such an option exists
for metanav.
thanks for the overview.
the metanav is like iron, I cannot alter it via INavigationContributor.
mainnav can be altered fine.
I've provided a workaround for now, by modifying the header.cs
work's nice:
http://case.lazaridis.com
(although I would prefere to have it within a plugin)
HTH,
Manu
--
http://lazaridis.com
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac