toastnz/silverstripe-cms-theme

CMS Theme Module

Installs: 141

Dependents: 2

Suggesters: 0

Security: 0

Stars: 1

Watchers: 7

Forks: 21

Open Issues: 2

Language:CSS

Type:silverstripe-module

0.3.1 2015-08-12 05:30 UTC

This package is not auto-updated.

Last update: 2024-12-25 11:36:59 UTC


README

Just a nice little UI change for the cms.

The theme supports an UploadField in the Settings > Settings Tab > CMS Tab for a logo to be displayed in the left-hand menu of the CMS.

Configuration

You can either choose to upload a CMS logo through the Site Settings section of the CMS, or you can define it through a YML configuration like the below:

SiteConfig:
  cms_logo: 'mysite/images/cms_logo.png'

You can set the theme colour of the left menu by defining it through a YML configuration like the below:

LeftAndMain:
  cms_menu_color: '#fff'
  cms_menu_background: '#1b354c'
  cms_menu_active_text_color: '#fff'
  cms_menu_active_background_color: '#0d1a25'

Example

demo-image

Grouping CMS Menus

CMS Branding will work with Grouped CMS Menu out of the box

Example

demo-image-grouped

Overriding/Adding Icons

The icons in this cms theme use Font-Awesome, to override these icons simply add the class that represents the icon you wish to display in your ModelAdmin extension. e.g:

private static $menu_icon_class = 'fa fa-pencil';

Alternatively you can set this using a YML config. e.g

CMSPagesController:
  menu_icon_class: 'fa fa-sitemap'