This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

mattchew
mattchew

I'm in the process of (trying) to change the icons in the backend for a client. I found this page (https://octobercms.com/docs/plugin/extending#extending-backend-menu) in the documentation and was able to change all of the icons. I changed the CMS, Media, and Settings without issue.

My issue is that when I change the blog icon (from the Rainlab blog plugin), using the following code that it removes the side menu as well.

$manager->addMainMenuItems('Rainlab.Blog', [
    'blog' => [
        'iconSvg'     => '',
        'icon'     => 'icon-notebook',
    ],
]);

Is there an easier way to modify the icons without removing the sidebars as well? Or am I just missing something?

Thank you

ideepblue
ideepblue

I met the same problem as you. I finally found out the solution. You should use "RainLab.Blog", not "Rainlab.Blog". Because of the first parameter $owner of the function addMainMenuItems is Plugin ID, which is case-sensitive.

Try the following code, it will work:

$manager->addMainMenuItems('RainLab.Blog', [
    'blog' => [
        'iconSvg'     => '',
        'icon'     => 'icon-notebook',
    ],
]);

Last updated

gavinfostered11132
gavinfostered11132

This worked for me! Thanks @ideepblue!

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.