Apologies for the noob questions..
I'm using the code below to display footer links for subfolders of the current 'root' folder - which is a folder created in the "industries.php" template.
eg.
Folder Root
-Folder Root link
-Folder Two link
-Folder Three link
It works fine and give me what I want, except it shows all folders from industries.php like this
Folder Root A
-Folder Root link
-Folder Two link
-Folder Three link
Folder Root B
-Folder Root B link
-Folder Two link
-Folder Three link
Folder Root C
-Folder Root C link
-Folder Two link
-Folder Three link
When I'd like to restrict it to just the "current" root folder.
I've tried childof, ancestors, and various other conditional blocks, but can't crack it.
How do I stop cms:folders showing all the folders like this?
I'm using the code below to display footer links for subfolders of the current 'root' folder - which is a folder created in the "industries.php" template.
eg.
Folder Root
-Folder Root link
-Folder Two link
-Folder Three link
- Code: Select all
<cms:if k_template_name == 'industries.php'>
<cms:set current_folder_name=k_folder_name />
<cms:folders masterpage='industries.php' hierarchical='1' limit='1'>
<cms:if k_level == '0' >
<p class="footer-label text-md-left text-xs-center"><cms:show k_folder_title /></p>
<p class="text-md-left text-xs-center" <cms:if k_folder_name = current_folder_name > style="color: rgba(255,255,255,.7);" </cms:if>><cms:if k_folder_name=current_folder_name>→ Resources<cms:else /><a href="<cms:show k_folder_link />" >Resources</a></cms:if></p>
<cms:else />
<p class="text-md-left text-xs-center" <cms:if k_folder_name = current_folder_name> style="color: rgba(255,255,255,.7);"</cms:if>><cms:if k_folder_name=current_folder_name>→ <cms:show k_folder_title /><cms:else /><a href="<cms:show k_folder_link />" ><cms:show k_folder_title /></a></cms:if></p>
</cms:if>
</cms:folders>
</cms:if>
It works fine and give me what I want, except it shows all folders from industries.php like this
Folder Root A
-Folder Root link
-Folder Two link
-Folder Three link
Folder Root B
-Folder Root B link
-Folder Two link
-Folder Three link
Folder Root C
-Folder Root C link
-Folder Two link
-Folder Three link
When I'd like to restrict it to just the "current" root folder.
I've tried childof, ancestors, and various other conditional blocks, but can't crack it.
How do I stop cms:folders showing all the folders like this?