forked from codeplant/simple-navigation
-
Notifications
You must be signed in to change notification settings - Fork 0
Rendering
Andreas Schacke edited this page Dec 27, 2010
·
18 revisions
To render the configured navigation the plugin uses renderers. You can use one of the built-in renderers or you can even provide your own renderer if you like.
The main method to render your navigation in the view is render_navigation. To tell the plugin which renderer to use you can
- set the renderer in the config/navigation.rb file, or
- specify the renderer in the render_navigation call
If you don’t specify a renderer explicitly the plugin uses the list renderer by default, which renders the navigation as an html list.
Read on to render the navigation as
- Html list (default)
- breadcrumbs
- link list (TODO)
In addition to render the navigation, you also have the option to just render the name of the currently active item. See Active Navigation Item Name for more details.