Faloude Faloude - 1 year ago 112
PHP Question

SilverStripe change page type icon

How do you change the page type icon (aka sitetree icon) for a certain page type, using the default icons in the framework?

Example: the form page icon.

enter image description here


I want to use one of the icons within the sprite file:


Answer Source

If someone stumbles over this one and has the same question... yes you can.

define what ever image-file

static $icon = "mysite/images/icons/foobar.png";

If the image is a sprite you can add CSS as needed

    - mysite/style/fixCMSstyle.css
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download