FORUMS CLOSED DUE TO SPAM. YOU STILL CAN ADD POST!

2 level subnavigation, How to?

Feed 2 posts, 3 voices

Avatar
1 posts

Hello guys!
First i would like to honor the team behind frog cms, i really love it.
It’s so simple and just so amazing.

I’ve tried searching the forums and read hundreds of threads trying to find how to build a 2level subnavigation without any luck so I guess this is the last chance for me to do this.

Ok so i got a topnavigation in the top without any dropdowns or anything, just simple links.
What Im trying todo is a leftcolumm with a submenu that is linked to the topnavigation only showing the children of the current page that im on. So let’s say I first click on the topnavigation link “About” then I want the children of “About” to be shown in the leftcolumm and still be visible when I click on a childlink.

Then if I add children to the children I want it to nest the subnavigation to the left like this:

|<---------------Start - Information - Blog - Contact (top navigation)---------------------->|

|<---1. About---------->|<---main----------------------------------------------------------->|
|<---  1.1 About sub--->|<---main----------------------------------------------------------->|
|<---  1.2 About sub--->|<---main----------------------------------------------------------->|
|<---  1.3 About sub--->|<---main----------------------------------------------------------->|
|<---2. Contact-------->|<---main----------------------------------------------------------->|
|<---3. Pictures------->|<---main----------------------------------------------------------->|

Does anyone know how to pull this off?

 
Avatar
11 posts

Take a look at the Navigation cookbook here

 
Avatar
180 posts

Small bug in /frog/app/classes/Page.php (line 339):

return $this->parent($level);

Replace on:

return $this->parent->parent($level);