I have a cloned page in a folder. What I want to do is use the <cms:pages> tag to display the other pages that are in the folder at the bottom of the page (like a 'Related Products' section). How would I go about doing this?
I have tried the following code but it loops through all of the cloned pages, not just the ones in the same folder.
I am using dynamic folders if that makes any difference.
I have tried the following code but it loops through all of the cloned pages, not just the ones in the same folder.
I am using dynamic folders if that makes any difference.
- Code: Select all
<cms:pages folder='<cms:show k_page_foldername/>' include_subfolders='0' >
<!-- All the variables of each page in this folder are available here -->
<div class="aicBox break-mobile">
<a href="<cms:show k_page_link/>">
<figure>
<img src="<cms:show image/>" alt="Product Image">
<figcaption><cms:show k_page_title/></figcaption>
</figure>
</a>
</div>
</cms:pages>