EDIT#1: Added code
Greeting to all and a very happy friendships day to all my CouchCMS friends!!!
@KK sir and @All,
I have a couch cart template with dynamic folders active. I want to generate a navigation menu for the folders and sub-folders to be displayed on the site globally (in all views) using this template. I am using bootstrap 3 navbar for the navigation menu.
My dynamic folders has only two levels, viz:
1. the main folder
2. the sub folder
The folder structure is as follows:
What I am trying to achieve is that:
1. The menu needs to show the above quoted structure on all pages throughout the site
2. When an item is clicked it needs to go to the respective view,
e.g.: a. if mugs is clicked, it needs to display all the pages in the mugs folder
b. if travel is clicked, it needs to display only the pages under travel.
My current code is as follows, but it is not giving the desired result:
How can this be achieved?
Thanks in advance.
Regards,
GenXCoders
Greeting to all and a very happy friendships day to all my CouchCMS friends!!!
@KK sir and @All,
I have a couch cart template with dynamic folders active. I want to generate a navigation menu for the folders and sub-folders to be displayed on the site globally (in all views) using this template. I am using bootstrap 3 navbar for the navigation menu.
My dynamic folders has only two levels, viz:
1. the main folder
2. the sub folder
The folder structure is as follows:
- MUGS
- - TRAVEL
- - SPIRITUAL
- - NATURE
- - GREETING
- LEATHER
- - WOMAN
- - TRAVEL
- - MEN
- - ACCESSORIES
- DIARY
- - SEEDED
- - NON SEEDED
- COPPER
- - TANK
- - JUG
- - GLASS
- - BOTTLE
What I am trying to achieve is that:
1. The menu needs to show the above quoted structure on all pages throughout the site
2. When an item is clicked it needs to go to the respective view,
e.g.: a. if mugs is clicked, it needs to display all the pages in the mugs folder
b. if travel is clicked, it needs to display only the pages under travel.
My current code is as follows, but it is not giving the desired result:
- Code: Select all
<cms:folders masterpage="product.php" hierarchical="1" order="desc" depth="1">
<li class="dropdown">
<a href="<cms:show k_folder_link />" class="dropdown-toggle" data-toggle="dropdown"><cms:show k_folder_title /> <b class="caret"></b>
</a>
<ul class="dropdown-menu" role="menu">
<cms:folders masterpage="product.php" root=k_folder_name >
<li>
<a href="<cms:show k_folder_link />"><cms:show k_folder_title /></a>
</li>
<cms:if "<cms:not k_last_child />" >
<li role="separator" class="divider"></li>
</cms:if>
</cms:folders>
</ul>
</li>
</cms:folders>
How can this be achieved?
Thanks in advance.
Regards,
GenXCoders