I can't seem to get this to work right. I have a clonable template with dynamic folders and I want to list all of the folders and the pages within the folders in the navigation. Below is what I have:
I have tried using the folders view and still no luck.
- Code: Select all
<li class="dropdown <cms:if k_template_name == 'what-hurts.php'>active</cms:if>">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">What Hurts?</a>
<ul class="dropdown-menu">
<cms:pages masterpage='what-hurts.php' folder=k_folder_name orderby='page_name'>
<li class="dropdown-submenu"><a href="#"> <cms:show k_page_foldertitle /></a><i class="fa fa-angle-right pull-right"></i>
<ul class="dropdown-menu">
<li><a href="<cms:show k_page_link />"><cms:excerpt count='28' truncate_chars='1'><cms:show k_page_title /></cms:excerpt></a></li>
</ul>
</li>
</cms:pages>
</ul>
</li>
I have tried using the folders view and still no luck.