• MODX.com

    189 downloads

PreviewSettings

PreviewSettings is an extra by matdave, first released on 2022-03-04.

Package Description

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.

Usage/Installation 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 |

Details

Developer(s)
matdave
Released
2022-03-04
First seen
2022-03-04
License
MIT
Supported databases
Minimum MODX Requirement
2.0

PreviewSettings Releases

Vendor Signature Released on
MODX.com 1.1.0-pl 2022-03-04 (2 years ago)
MODX.com 1.0.0-pl 2022-03-02 (2 years ago)