Hi,
My plugin is adding a new item to the mainnav menu, but while the
other menu items get highlighted (with a black background on trac's
default theme) when they are clicked on, the one I created always
stays un-highlighted. any idea why?
I'm implementing get_active_navigation_item() and the
get_navigation_items() of the INavigationContributor interface along
these lines:
def get_active_navigation_item(self, req):
return 'myplugin'
def get_navigation_items(self, req):
yield 'mainnav', 'myplugin', Markup('<a href="%s">My Plugin</
a>' % (
self.env.href.myplugin() ) )
Cheers,
Filipe
--
You received this message because you are subscribed to the Google Groups "Trac
Development" 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-dev?hl=en.