Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
Hi there,

I have a little problem to get my gallery listing up correctly.
I'm trying to set up the gallery in the following style:

Root-Page:
list 1st level of folders (e.g. Models, Architecture, Vehicles...)

1st Level-Folder (e.g. Models):
list 2nd level of folders (e.g. Stephanie, Jacky, Steve...)
or if no subfolder -> list all photos of that folder

2nd Level-Folder (e.g. Stephanie):
list all photos of that folder

Hope you can help me :)
Hi

I'm not sure what you mean but are pages not working for you?

http://docs.couchcms.com/tags-reference/pages.html

Code: Select all
<cms:pages masterpage='Root-Page.php' folder='your folder name'>

Your stuff here

</cms:pages>
I load frameworks and write bugs on top of them, after that I rearrange the code so that it looks like a cool product.
@jDazz,
It'd be helpful if you could post the code you are currently using.
The only thing I got to run is the following short version.

I'm able to display all folders of the 1st level with:
Code: Select all
<cms:if k_is_home>
   <cms:folders orderby='weight' order='asc' depth='1'>
      <a href="<cms:show k_folder_link />"><cms:show k_folder_title /></a>
   </cms:folders>
</cms:if>


and all 2nd level folders inside of a 1st level folder with:
Code: Select all
<cms:if k_is_folder>
   <cms:folders childof=k_folder_name orderby='weight' order='asc' depth='1'>
      <a href="<cms:show k_folder_link />"><cms:show k_folder_title /></a>
   </cms:folders>
</cms:if>


The problem is, that the 3rd level folders are also displayed beside the 2nd level folders and I have no idea how I can ask a folder for his subfolders to display pictures if he has no subfolders.

The gallery is build up this way for better explaination:

Code: Select all
Gallery Level 1   Level 2  Level 3

  |-----Models
  |       |-------Steph
  |       |         |------*lot of photos*
  |       |-------Jacky
  |                 |------*lot of photos*
  |
  |-----Architec.
  |       |-------*lot of photos*
4 posts Page 1 of 1