PreviewSettings

Add/override settings for logged in manager users.

Creator: Mat Dave Jones (matdave)

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 Database
MySQL

License
MIT

Supported Versions
2.0 - Current

Downloads
190

Documentation
PreviewSettings Documentation

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 |

New in 1.1.0-pl

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

Current releases

1.1.0-pl
View | Download
March 4, 2022
2.0 - Current