On Jan 10, 10:49 pm, Olemis Lang <[email protected]> wrote:
> Hi !
>
> I'm building a Trac theme and I need to determine what ctxtnav item is
> active . It's possible to do so for mainnav and metanav so as to
> highlight active navigation item . Nonetheless e.g. if user accesses
> TitleIndex wiki page afaics there's no way to determine `Index`
> ctxtnav item is active so as to highlight it .
>
> Q:
>   - Does Trac provides a way to highlight active ctxtnav item ?
>   - Is it possible to hack things somehow so as to get this done ?
>
> I look forward to your suggestions . Thnx in advance .

Hi Olemis.

No Trac does not have such extended support for ctxtnav, it is all
somewhat unpredictable from a theming aspect. However, a general rule
that I think should work for most cases is to highlight the item that
is NOT a link - ctxtnav common practice is to render just the text for
whatever is currently "active". If all items are links then you cannot
presume any individual item to be the 'active' one.

But again, ctxtnav is the domain of each module and it can add
whatever it wants in whatever way it wants. You cannot be sure of what
you get, but at least if you maintain themes you can help to file
tickets for plugins that use any "unexpected" behavior.


:::simon

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.

Reply via email to