Hi,
I'm building a site for the first time using Couch and I love it! The tutorials have been very useful but I'm struggling to implement something.
I have a collection of nested pages all with a menu on the side of the page, I'd like that menu to list any child pages (which I can do easily with the menu tag) but when the user gets to the bottom of the tree and there aren't any more child pages to display I'd like the menu to display all pages at the same level of the page they are currently on.
For example looking at the attached image:
Users on the 'Curriculum' page will see the menu populated with:
Users on the 'English' page will see the menu populated with:
Users on either the 'Key Stage 3' or 'GCSE English' pages will see the menu populated with:
I'm sure I've missed something obvious but can't find anything in the tutorial or forums.
Many thanks!
I'm building a site for the first time using Couch and I love it! The tutorials have been very useful but I'm struggling to implement something.
I have a collection of nested pages all with a menu on the side of the page, I'd like that menu to list any child pages (which I can do easily with the menu tag) but when the user gets to the bottom of the tree and there aren't any more child pages to display I'd like the menu to display all pages at the same level of the page they are currently on.
For example looking at the attached image:
Users on the 'Curriculum' page will see the menu populated with:
- English
- Mathematics
- Science
Users on the 'English' page will see the menu populated with:
- Key Stage 3
- GCSE English
Users on either the 'Key Stage 3' or 'GCSE English' pages will see the menu populated with:
- Key Stage 3
- GCSE English
I'm sure I've missed something obvious but can't find anything in the tutorial or forums.
Many thanks!