I'm trying out the Dynamic Folders feature and I'm really pleasently surprised about how easy it is to work with it in the Admin.
I have a problem on the front-end. The matter is, I'd like to be able to list contents of a folder in a way that the list shows only the direct (single level below) children of that folder (parent).
In other words, it would be structured something like this (subfolders are marked with all caps):
- SUBFOLDER 1
- Page 1
- Page 2
- Page 3
- SUBFOLDER 2
- Page 4
...
So basically, in order to see what pages and/or folders are contained within a subfolder, you'd have to click it and would then be presented with the list of its contents.
Right now, in my case, this list looks like this (pages which are direct children of the root foolder are designated with 0.X):
- Page 1.1 (Child of the SUBFOLDER 1)
- Page 0.1
- Page 0.2
- Page 0.3
- Page 2.1 (Child of the SUBFOLDER 2)
- Page 2.2 (Child of the SUBFOLDER 2)
- Page 0.4
...
The code I'm using to generate this list is
Is there a way to refine this list so that it shows only the items of the same "depth" or "level" within a folder?
Thanks in advance.
I have a problem on the front-end. The matter is, I'd like to be able to list contents of a folder in a way that the list shows only the direct (single level below) children of that folder (parent).
In other words, it would be structured something like this (subfolders are marked with all caps):
- SUBFOLDER 1
- Page 1
- Page 2
- Page 3
- SUBFOLDER 2
- Page 4
...
So basically, in order to see what pages and/or folders are contained within a subfolder, you'd have to click it and would then be presented with the list of its contents.
Right now, in my case, this list looks like this (pages which are direct children of the root foolder are designated with 0.X):
- Page 1.1 (Child of the SUBFOLDER 1)
- Page 0.1
- Page 0.2
- Page 0.3
- Page 2.1 (Child of the SUBFOLDER 2)
- Page 2.2 (Child of the SUBFOLDER 2)
- Page 0.4
...
The code I'm using to generate this list is
- Code: Select all
<cms:pages masterpage='demos.php' folder='folder' paginate='1' limit='10'>
Is there a way to refine this list so that it shows only the items of the same "depth" or "level" within a folder?
Thanks in advance.