Provide a set of manageable options to the user when creating pages.

  • is it possible to create a set of manageable options for the user to choose from when creating pages?


    Eg give them an area/page of the site they could manage colours, so they can add new ones. Then on a separate page allow them to choose the colours from checkboxes?

  • There are a number of approaches for this.

    1. Add a 'page' style chooser in the body element.
    2. Weave css choosers for granular control though with template inserts so you only have to write one.
    3. Add whole preset stylesheet inserts based upon client choice in the header.


    Example 2. Inline style chooser to customise text color and background color.


    Code
    1. <div style="color:<perch:content id="textcol" type="text" label="text colour in full hex or rgbcode" no-index />; background: <perch:content id="bgcol" type="text" label="Bg col css text mode" no-index>;" > --- more content </div>
  • Eg give them an area/page of the site they could manage colours, so they can add new ones. Then on a separate page allow them to choose the colours from checkboxes?

    Perhaps categories is a good option. You create the categories via the control panel, then you can add a category field to wherever you want the editor to select them from (page attributes, regions, etc):


    HTML
    1. <perch:categories id="colours" set="colours" label="Colours" display-as="checkboxes"></perch:categories>


    You can add more fields to your category templates, so the suggestions made in the previous comments may still be relevant to your use case.

  • Thanks guys (this is my work handle).


    A special categories set might be the answer.


    We require the options need to be abstracted from the selection of the option itself. So if an option has a name or image change, the update would be global. We'll give it a go.