Future MODX Extra to edit context settings via a resource on the front end, see example here
How to use:
- Create a new snippet in MODX, name it client-settings
- Copy the client-settings code into the snippet
- Create Context Settings in MODX
- Create a New Resource in MODX and place the snippet call with two parameters these are:
&category
and&target
. - The Category parameter is used to select your settings from an Area Lexicon Entry if you use one to group your settings, otherwise you can leave it empty for all context settings and leave the category value empty, example in client settings snippet. (Need to make this a default value).
- The Target parameter is used to specify the target ID of the resource you want to go to once you submit the form, (Need to make a default value for this to be the current ID of the page).
- Refer to the clients settings snippet to see the different ways to use the snippet with and without a Category value.
- Chunk templating
- Default values for Category and Target parameters
- Code optimization & clean up
- Need to add support to get the custom name to display instead of the key value since theres an issue with updating settings that have spaces
- Support for multiple snippet calls via categories with a single save button.