Faloude Faloude - 1 month ago 11
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

edit

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

sitetree_ss_pageclass_icons_default.png

Answer

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

LeftAndMain:
  extra_requirements_css:
    - mysite/style/fixCMSstyle.css
Comments