Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
Hi,
I have a gallery that is using dynamic folders and the images for the gallery are separated into the folders.

The question I have is, how do I show the title of a folder then the images of that folder below, then a newline and the title of the next folder and the contents of that below that. and so on?

any help greatly appreciated
Hi Barry,

Following is a rough plan to do that -
Code: Select all
<cms:folders>

    <h2>Folder: <cms:show k_folder_title /></h2>
   
    <cms:pages folder=k_folder_name include_subfolders='0'>
        <h3>Page: <cms:show k_page_title /></h3>
    </cms:pages>

</cms:folders>

The idea is to nest cms:pages with cms:folders so each iteration of the folder also shows the pages within it.

Place <cms:dump /> or <cms:dump_all /> at appropriate places to see the variables available for use, in case you need to.

Hope it helps.
2 posts Page 1 of 1