A simple library of SVG page type icons for enhancing your SilverStripe CMS interface.
- SilverStripe CMS 5.x
Note: this version is compatible with SilverStripe 5. For SilverStripe 4, please see the 2 release line.
Install the module using composer:
composer require innoweb/silverstripe-page-icons dev-master
Then run dev/build.
You can reference the page type icons in your configuration like this:
Your\Namespace\ExampleLocationPage:
icon: 'innoweb/silverstripe-page-icons: client/icons/location.svg'
For page types that use the Silverstripe built-in icon classes, you need to also disable the icon class:
SilverStripe\UserForms\Model\UserDefinedForm:
icon: 'innoweb/silverstripe-page-icons: client/icons/form.svg'
icon_class: false
The module by default replaces the icons for the default page types SiteTree/Page, ErrorPage, VirtualPage and RedirectorPage. It also replaces the page types for the following modules:
BSD 3-Clause License, see License