Re: [Trac] Reorder Navigation Menu items, hierarchy?

2006-08-17 Thread Christopher Taylor

Yeah, I looked into the mainnav directive, but I couldn't see anything
on what parameters to pass to it.  Any ideas on where to look?

-Christopher


I think that you can reorder items with "metanav" and "mainnav"
directives in trac.ini.

___
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac


Re: [Trac] Reorder Navigation Menu items, hierarchy?

2006-08-17 Thread Michael Renzmann
Hi.

> Christopher Taylor kirjoitti:
> Currently hiding of items is only done by permissions, maybe possibility
> to control shown/hidden items in menus with directive/code would be nice
> too.

I wrote a patch for 0.9.4 which allows to hide navigation bar items (those
that are added by the core components, such as the wiki or the source
browser) without messing with the permissions. I think this is useful in
some cases (at least in mine it was ;)).

The patch is part of a larger modification we use for madwifi.org, but if
there is interest, I can provide it as independant patch against a vanilla
version.

Bye, Mike

___
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac


Re: [Trac] Reorder Navigation Menu items, hierarchy?

2006-08-16 Thread Jani Tiainen

Christopher Taylor kirjoitti:

Hello all,

I was wondering if anyone knows how to reorder the menu items in the
navigation menu?Also, is it possible to make it a hierarchy?  When
you have a few plugins active it gets quite busy, and some of these
could be grouped together; {View Tickets, New Ticket, Cantt Charts}
could combine to a single "Ticket Management" and the Timeline and
Roadmap could also be combined as wel.  I admit that combining these
things is a matter of taste, but the general ability is what I'm
looking for.  At the very least though, reordering them would be
helpful.


Generic problem in web designs that really has no good solution avail.

I think that you can reorder items with "metanav" and "mainnav" 
directives in trac.ini.


There is at least three ways to do it.

1) Javascript dynamic menus

2) CSS based menus (This is problematic with IE since you need :hover on 
arbitary elements)


3) Reload page whenever you click toplevel item.

Currently hiding of items is only done by permissions, maybe possibility 
to control shown/hidden items in menus with directive/code would be nice 
too. That way you could build your own "control panel" plugin to contain 
all not-so-important stuff.



--

Jani Tiainen
___
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac