One-pager create new sections
Permalink
Hi all,
I am trying to create a single page website in Concrete5 5.7 and am working on a way for the client to be able to create new page with editable areas in each.
I think using C5's select page attribute with "allow user to add values" selected will give me the best outcome.
I am trying to work out how to pull each value added to the select attribute and create a new section for each.
I understand foreach is required for this however my php skills are quite weak.
If someone out there could offer a little help with foreach'ing' the values of a page attribute (select) I think I can make it create new sections and name them individually, hopefully even automatically create the nav for each section.
Any help would be greatly appreciated.
I am trying to create a single page website in Concrete5 5.7 and am working on a way for the client to be able to create new page
<section></section>
I think using C5's select page attribute with "allow user to add values" selected will give me the best outcome.
I am trying to work out how to pull each value added to the select attribute and create a new section for each.
I understand foreach is required for this however my php skills are quite weak.
If someone out there could offer a little help with foreach'ing' the values of a page attribute (select) I think I can make it create new sections and name them individually, hopefully even automatically create the nav for each section.
Any help would be greatly appreciated.
You could try something like this:
The order of the select values on the attribute page will be the order of the areas. The select values ordering can be changed by dragging values up or down.
I have attached screenshots to help describe this.