Thank you.
I have placed
${HTML(render_navbar(active=menu_level))}
in header template and then passed to template menu_level in controller.
return dict(menu_level=u'Docs').
On 05.12.2011, at 0:55, Michael Pedersen wrote:
> When you add a navbar entry to a method, you do something like this:
>
> @navbar('My || Spiffy || Menu || Structure')
>
> If you want to tell render_navbar that the menu item which should be given
> the active class is that one, you would then do this in your template:
>
> render_navbar(active='My||Spiffy || Menu || Structure')
>
> And that's it, you're done.
>
> On Sun, Dec 4, 2011 at 6:57 AM, Lexa Po <[email protected]> wrote:
> Hello,
>
> Please give me example how to use active parameter in render_navbar of
> tgext.menu.
>
> --
> You received this message because you are subscribed to the Google Groups
> "TurboGears" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/turbogears/-/RhS404wses4J.
> 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/turbogears?hl=en.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "TurboGears" 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/turbogears?hl=en.
--
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears?hl=en.