webbuilders-group/silverstripe-cmspreviewpreference

Adds the ability for users to control the default CMS preview mode and size for their login

Installs: 14 190

Dependents: 0

Suggesters: 0

Security: 0

Stars: 6

Watchers: 5

Forks: 2

Open Issues: 0

Type:silverstripe-vendormodule

2.1.1 2024-04-23 12:39 UTC

This package is auto-updated.

Last update: 2024-11-23 14:28:28 UTC


README

Adds the ability for users to control the default CMS preview mode and size for their login.

Maintainer Contact

Requirements

  • SilverStripe CMS 4.0+

Installation

composer require webbuilders-group/silverstripe-cmspreviewpreference

Usage

When managing a user or a user views their profile in the CMS they will see the ability to toggle which preview mode is their default preview mode, after changing this the user will be asked to reload the cms to update the setting.

Default Preview Mode

The default preview mode is set to "content", you can change this in your config by setting the UserPreviewPreference.DefaultMode setting to one of the following: "content", "split" or "preview".

WebbuildersGroup\CMSPreviewPreference\Extensions\UserPreviewPreference:
    DefaultMode: "split"