Forum
Nesting Regions for Single Page application
Hi,
Is there a way of nesting regions. I am creating a single page application and would like the editors to be able to navigate the hierarchy of the page (even though there is only one) instead of having a flat list of editable regions.
For example my single page is split into sections. Would be nice to have potentially a different template for each section. But inside each section i might want another template and the inner template my need to be repeatable.
An example is a "Who we are" section, inside the who we are section will be a title and a list of 'User groups' each group will have a title and a list of users.
Here i would envisage - a Who we are template with a title and a nested user group template - a user group template with a title and a nested user template - a user template with the markup for a single user
However it appears you cannot have repeatable nested templates? Is there a better way to achieve what i am trying to do or will i have to stick with having a flatter set of regions on my page i.e.
Section Title region Group title region users region Group title region users region
Thanks in advance for your help.
Hi Edward,
I achieve something very similar on a site of mine using a combination of Multiple Item Regions, Blocks and Repeaters
The editor can add a new section by adding another 'region'. Here they can choose the section heading and the colour/texture of the background. Next they choose the type of content with blocks, some of the blocks have repeating regions within them to allow for multiple items inside blocks.
Here is my template, feel free to pick through it to see if the method helps you :)
Thanks, sounds promising , i will have a good look through.
Ed