Importing Partial Option Sets
Last updated not available | Page history | Improve this page | Report an issue
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$290 per month—let's make that $500!
Learn moreImporting an Option Set is done with a specific with a fred-import
key in the JSON import object.
- Only partial Option Sets can be imported
- Import only works for Settings
- The entire import object will be replaced by the
Full import¶
The use case for a full import, versus defining a complete Option Set, is if you have a base set of options that are identical across many Elements, including one that only uses the base options. An example of this would be a site that has call to action buttons in many Elements, including one that is just a single CTA button.
Full Settings import for a CTA-button-only Element¶
cta_settings
partial Option Set¶
Partial import¶
You can import specfic frequently used partial option sub-sets into a Complete Option Set.
Complete Option Set¶
Note, the cta_settings
import is defined above.
text_color
partial Option Set¶
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$290 per month—let's make that $500!
Learn more