Silverstripe Version: 4.2.2
I can’t get
private static $menu_icon = 'path/to/modeladmin/news-icon.png';
to work in a ModelAdmin class whatever I try.
I looked up the API documentation and there’s a mistake in the menu_icon_for_class method for Example: static $menu-icon = ‘/path/to/image/’;
It definitely is not menu-icon as that doesn’t exist.
What seems to happen is that the CSS in Left and Main icon for the ModelAdmin gets modified to…
class = "menu__icon font-icon-circle-star font-icon-my-namespace-mymodeladminclass"
…rather than use the image path provided.
However if you put an image path that does not exist on the filesystem you also get a fatal error.
Does anyone know how to customise the ModelAdmin icons?
The documentation page for it says 16x16 pixel images so that’s what I made.
Now that my SS4 project is almost finished I wanted to begin tarting it up a bit so it looked nice as well.