restruct/silverstripe-login-branding

Restruct Silverstripe Admin Login Branding Module

Installs: 34

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Language:Scheme

Type:silverstripe-vendormodule

0.1 2021-06-26 10:06 UTC

This package is auto-updated.

Last update: 2024-03-26 16:17:33 UTC


README

Replaces/reduces the default Silverstripe branding of the login forms module and makes it easily configurable. 123509152-2cbbfd00-d674-11eb-9373-70ad2ad4157b.png

The icon above- and credits below the form are configurable via Yaml:

Restruct\SilverStripe\AdminBranding\SecurityBrandingExtension:
  built_by: 'Built by <a href="https://yoursite.tld" target="_blank">Your Company</a>'
  powered_by: 'Powered by <a href="https://silverstripe.org" target="_blank">Silverstripe</a>'
  include_icon: true

Add your (client’s) logo/brand above the form

Add an AppBrand.ss template file in either [app]/templates/Includes/ or themes/[client-theme]/templates/Includes/, eg:

<h1 class="app-brand__logo">AppBrand</h1>

And set the theme as highest prio on SilverStripe\LoginForms\EnablerExtension (before #admin-branding):

---
Before:
  - '#admin-branding'
---
SilverStripe\LoginForms\EnablerExtension:
  login_themes:
    - 'client-theme'

123509163-35143800-d674-11eb-8844-c0fed19c9afb.png

Optionally set Restruct\SilverStripe\AdminBranding\SecurityBrandingExtension.include_icon to false to remove the icon.

Shield-lock icon kindly provided by Bootstrap Icons.