forked from codeplant/simple-navigation
-
Notifications
You must be signed in to change notification settings - Fork 0
Rendering
andi edited this page Sep 13, 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
- breadcrumbs
- link list