@justin,
I suppose you are trying to output the markup you posted earlier (which I somehow missed seeing, I'm sorry) -
If so, the following would be the correct code for it -
Please notice that in folder=k_folder_name, there are no quotes surrounding the k_folder_name (quotes would make Couch search for a folder with the literal name of 'k_folder_name' - without quotes it is considered to be a variable, which is what we want).
Hope it helps.
I suppose you are trying to output the markup you posted earlier (which I somehow missed seeing, I'm sorry) -
- Code: Select all
<li><a href="">Services</a>
<ul>
<li><a href="">Swimming</a>
<ul>
<li>Crawl</li>
<li>Brestroke</li>
<li>Backstroke</li>
</ul>
</li>
<li><a href="">Tennis</a></li>
<li><a href="">Table Tennis</a></li>
</ul>
</li>
If so, the following would be the correct code for it -
- Code: Select all
<li><a href="">Services</a>
<ul>
<cms:folders masterpage='product.php' depth='1' orderby='weight' order='asc'>
<li><a href="<cms:show k_folder_link />"><cms:show k_folder_title /></a>
<ul>
<cms:pages masterpage='product.php' folder=k_folder_name orderby='publish_date' order='asc'>
<li><a href="<cms:show k_page_link />"><cms:show k_page_title /></a></li>
</cms:pages>
</ul>
</li>
</cms:folders>
</ul>
</li>
Please notice that in folder=k_folder_name, there are no quotes surrounding the k_folder_name (quotes would make Couch search for a folder with the literal name of 'k_folder_name' - without quotes it is considered to be a variable, which is what we want).
Hope it helps.