MODX EXTRA

PreviewSettings

Add/override settings for logged in manager users.

Creator: Mat Jones (matdave)

1.1.0-pl (24 KB) Other Versions Need help installing this extra?

About PreviewSettings

With PreviewSettings you will be able to override system settings or create unique settings just for logged in manager users. Need to bypass a firewall when logged in? Just add a unique ps.site_url to your context.

Information

Released
March 4, 2022
Supported Versions
2.0 – 2.8
Supported Database
MySQL
Downloads
110
License
MIT

Instructions

Setup

The following system settings will be added in order to configure who has access to view the site with your preview settings.

previewsettings.preview_groups

Comma separated list of User Groups which the preview settings will work for. Defaut: Administrator

previewsettings.manager_only

A Yes/No field that limits the preview settings to only be enabled if the user has logged in via the Manager. Default: Yes

If both preview_groups is empty and manager_only is set to "No", then only sudo users will have access to the preview settings.

Creating Preview Settings

Preview settings can live along side your regular settings in either the System Settings, Context Settings, User Settings or User Group Settings. To create a preview settings, simply create a duplicate of your regular setting with the key prefixed with ps..

Example

Key Value
site_url https://example.com
ps.site_url https://staging.example.com
More

New in PreviewSettings 1.1.0

  • Allow to work with the Resource Tree
  • Prevent caching resource when in use
More

Current Releases

1.1.0-pl
March 4, 2022
2.0 – 2.8
More
View Deprecated Releases

More from Mat Jones

TV

Twilio Verify

Verify users with phone or totp using Twilio Verify

MODX Dark Theme

MODX Dark Theme

Join the Dark Side

AW

AWS S3 Media Source

Alternate Amazon S3 Media Source for MODX Revolution

Zendesk

Zendesk

Zendesk Hook for MODX FormIt