Hi all, I'm currently making a memorial page and at the moment each person's memorial is listed on the homepage in one big list like:
Person 1 (with details like their name, age, bio etc.)
--
Person 2
--
Person 3
--
Person 4
etc.. (about 100+)
I'm using clonable page templates for each person like:
And then using a snippet like:
Which is then listed on the home page like:
This works fine and all but I wish to group certain people in to categories (e.g for families) and visually make that clear on the front end like:
Person 1
--
Family 1:
Person 2 (plus their field data like name, age, bio, not just the title)
Person 3
Person 4
---
Person 5
Essentially list-view each clonable page but while doing so check to see if a page belongs to a certain family, and if it does, to loop that family within one group (so there are no separators between them)
I have tried using both folders (dynamic) and nested pages but for the life of me can't seem to grasp how to solve this issue. If using folders, I don't just want to display the folder title but the contents of the folders pages too while at the same time listing all the other pages that aren't in folders.
Could anyone please help me out?
big fan of couchcms here
Person 1 (with details like their name, age, bio etc.)
--
Person 2
--
Person 3
--
Person 4
etc.. (about 100+)
I'm using clonable page templates for each person like:
- Code: Select all
<cms:template title="Memorials" clonable="1">
[a bunch of editables for their name, age, bio etc.]
</cms:template>
And then using a snippet like:
- Code: Select all
<cms:pages orderby="weight" order="asc" masterpage="memorials.php">
[a bunch of html which grabs each person's name and bio from the editables above]
</cms:pages>
Which is then listed on the home page like:
- Code: Select all
<cms:embed "memorial-list.html" />
This works fine and all but I wish to group certain people in to categories (e.g for families) and visually make that clear on the front end like:
Person 1
--
Family 1:
Person 2 (plus their field data like name, age, bio, not just the title)
Person 3
Person 4
---
Person 5
Essentially list-view each clonable page but while doing so check to see if a page belongs to a certain family, and if it does, to loop that family within one group (so there are no separators between them)
I have tried using both folders (dynamic) and nested pages but for the life of me can't seem to grasp how to solve this issue. If using folders, I don't just want to display the folder title but the contents of the folders pages too while at the same time listing all the other pages that aren't in folders.
Could anyone please help me out?
