Hi,
Working with CouchCMS is a breese and I'm finding out new way how to work with it.
I've got a question I can't find in the documentation or on the forum.
With cms:pages I'm able to create pages, add them to a folders. Like this I can filter pages based on their folder:
One drawback with this way of making pages is I can't show the list in the admin panel 'asc' based on the folder names. Or can this be done?
Because of this issue I started using nested pages because they make it possible to create pages with subpages and them around in the admin panel. The problem I'm having with nested pages is that I can't find a way to display a list of pages based on their parent page, like pages can only belong to a folder.
The code for display nested pages looks like this only I can't find a way to display them so they behave like pages in folders:
What's needed to change this code so every chapter in the frontend displays a list of pages belonging to a parent page?
Working with CouchCMS is a breese and I'm finding out new way how to work with it.
I've got a question I can't find in the documentation or on the forum.
With cms:pages I'm able to create pages, add them to a folders. Like this I can filter pages based on their folder:
- Code: Select all
<cms:pages masterpage='chapters.php' folder=k_folder_name order='asc' >
<div class="content">
<h1><cms:show k_page_title /></h1>
<cms:show content />
</div>
</cms:pages>
One drawback with this way of making pages is I can't show the list in the admin panel 'asc' based on the folder names. Or can this be done?
Because of this issue I started using nested pages because they make it possible to create pages with subpages and them around in the admin panel. The problem I'm having with nested pages is that I can't find a way to display a list of pages based on their parent page, like pages can only belong to a folder.
The code for display nested pages looks like this only I can't find a way to display them so they behave like pages in folders:
- Code: Select all
<cms:nested_pages masterpage='chapters-nested.php' >
<div class="content">
<h1><cms:show k_nestedpage_title /></h1>
<cms:show content />
</div>
</cms:nested_pages>
What's needed to change this code so every chapter in the frontend displays a list of pages belonging to a parent page?