Navigation to Multiple Sections Within a Page
Permalink
I am working on a theme for a client that features horizontal scrolling, so it's like there's several pages within the same page. There is a navigation menu that takes you to each section on the page.
However, I need to know how to make it so that the site editor will be able to add sections (each with a custom name) on their own, by adding a page attribute.
However, I need to know how to make it so that the site editor will be able to add sections (each with a custom name) on their own, by adding a page attribute.
Then for your navigation, you can have an attribute that links to the sections, something like "Name for Area 1", "Name for Area 2".
Finally your navigation would check to see if there are blocks in the area, and if so display the corresponding area name (set by the attribute) - if no attribute was set, you could give it a default value.
Untested code, may need tweaked.
Hope that helps!
Reference:http://www.concrete5.org/documentation/developers/pages/areas/...