purplespider/mypswd-tweaks

Custom SilverStripe tweaks to keep things tidy.

Installs: 1 260

Dependents: 0

Suggesters: 0

Security: 0

Stars: 18

Watchers: 4

Forks: 4

Open Issues: 0

Type:silverstripe-vendormodule

5.2.0 2024-02-23 17:23 UTC

This package is auto-updated.

Last update: 2024-12-23 19:10:10 UTC


README

Introduction

This module contains many of the custom tweaks that I make to every SilverStripe site I do. A lot is just hiding features that most of my clients don't use to clean up the CMS interface.

While it is possible to disable specific tweaks by removing the individual extension, you probably don't want to use this module as is. Partly because it automatically sets the SilverStripe Help link to my custom help site. However, please do take a look around and steal anything you may find useful!

Maintainer Contact

Requirements

  • Silverstripe 4.1+
  • For SilverStripe 3 related tweaks, see the 1.0 branch.

Active Extensions

  • AllowFileUploads: Enabled file uploads for all CMS users. (sets canCreate etc to true)
  • PageHideDependent: Hides the "Dependent" page CMS tab.
  • PageHideExtraMetaData: Hides MetaKeywords and ExtraMeta fields.
  • PageSettingsHidePermissions: Hides Page permission fields such as CanViewType and CanEditType.
  • PageSettingsHideSearch: Hides the ShowInSearch settings field.
  • MemberTidy: Hides ofen unused Member fields such as Time & Date format.
  • CMSMenuLinks && CustomSiteConfig: Adds admin customisable CMS links to my custom help guide and analytics
  • LoginSessionExtension: Required for Recent Active Users report (see below)

Extra Extensions

  • CannotCreatePage: Apply this extension to page types that you don't want non-admin users to be able to create.
  • BlockPageDelete: Disables ability to Archive or Unpublish a page that extends this. Applied to HomePage by default.
  • SinglePageOnly: Can to applied to any page type, so only 1 can be created. Useful for keeping the Add New page type list tidy.

Page Types

  • FirstChildRedirect: Automatically redirects to the first child of the page. Useful for top level pages with no content of their own.

Config

  • E-mail Error Log Alerts: logging.yml e-mails any error that occurs on a 'live' site.
  • CMS Help Link: Sets the CMS help link to my custom built SilverStripe Help site.
  • Hide Error Page: Hides Error Page from the Add New page list (uses CannotCreatePage extension)
  • Hide Virtual Page: Hides Virtual Page from the Add New page list (uses CannotCreatePage extension)
  • Set Admin Email: Set's the Admin Email address to a noreply address for which I control the SPF. Better than no address at all, which can result in forgotten password e-mails flagged as spam.
  • Disable TinyMCE Icons: Disables some icons such as underline.
  • Enable TinyMCE Styles: Enables the Styles dropdown for custom styles.

CMS CSS

  • Hides Error Pages: Hides error pages from the site tree.
  • Differentiate Hidden Pages: Pages that have "Show in menus?" unchecked, are grey in the site tree.
  • Hide Disabled Pages from Add New: Pages that can't be created are now hidden from the Add page list, rather than being greyed out.
  • Hide GridField Pagination Details: From above a GridField only, to avoid the gap below the GridField title.
  • GridField: Vertical Align Middle: Set cells of GridField to vertical align middle. Looks nicer, especially with centered icons and drag handles.

Templates

  • Email.ss: Sets font to sans-serif
  • ForgotPasswordEmail.ss: Changes the wording and format of the forgotten password e-mail to make it a bit friendlier.
  • SiteTreeURLSegmentField.ss: Adds a "Copy URL" button. To help stop users from copying the draft link.

Modules

Tasks

  • Generate CMS Thumbnails: A task to run generateThumbnails() on each File object. For use after the MigrateFileTask if using legacy_filenames
  • Send Test Email: A task to instantly send a test email to quickly check email deliverability.

Reports

  • Recent Active Users: Displays a list of users who have recently logged in. Useful for quickly checking that no CMS users are logged in, before performing maintenance. Modified /silverstripe/silverstripe-securityreport.

Lang

  • Renames User Defined Form: To a more user friendly "Form Page".