Skip to content

Future MODX Extra to edit context settings via a resource on the front end

Notifications You must be signed in to change notification settings

benmarte/Client-Settings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Client-Settings

Future MODX Extra to edit context settings via a resource on the front end, see example here

How to use:

  1. Create a new snippet in MODX, name it client-settings
  2. Copy the client-settings code into the snippet
  3. Create Context Settings in MODX
  4. Create a New Resource in MODX and place the snippet call with two parameters these are:
    &category
    and
    &target
    .
  5. 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).
  6. 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).
  7. Refer to the clients settings snippet to see the different ways to use the snippet with and without a Category value.

Things to improve or features to add.

  1. Chunk templating
  2. Default values for Category and Target parameters
  3. Code optimization & clean up
  4. 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
  5. Support for multiple snippet calls via categories with a single save button.

About

Future MODX Extra to edit context settings via a resource on the front end

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published