Giter Site home page Giter Site logo

client-settings's Introduction

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.

client-settings's People

Contributors

benmarte avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.