Hi there,
I want to achieve repeatable content blocks on a page. These 'sections' of a page comprise of an image, a title, and the content. I want them to be editable from the page editor in the CMS. This seems easily achievable by making these sections work like blog posts, where you write a post then attach it to a category (in this case a page) but it should be possible do this by adding and removing tabs (Root.Section_1, Root.Section_2 ... etc) for the Page Type in the CMS (instead of the sections having their own area of the CMS and being difficult for those who aren't technically inclined to manage).
What I've tried is creating a new DataObject 'Section.php' and Page type 'SectionedPage.php'. What I'm having trouble with is adding/removing tabs (by using action buttons?) and associating 'sections' with the page ID. The template 'SectionedPage.ss' loops through Sections associated with the page ID.
The purpose of this functionality is for an editable parallax scrolling website. The image is a big background image, the title appears ontop of the image (which will scroll with a parallax effect) and the content appears in a regular space below the image.
Any insight would be greatly appreciated