All of the icons displaied is control_panel_default.png. Where can I find the instruction to create custom icons? Thanks!

Comments

dreed47’s picture

If you don't see the out-of-the-box icons that are packaged with the module then there is something wrong with your configuration. ControlPanel ships with a complete set of icons in different sizes for all core Drupal functions and many of the popular contributed modules as well.

If you are wanting to create your own icons then use icon following naming format for your icon files.

drupal path = admin/settings/upload
icon file name = admin_settings_upload.png

and place the icon in the appropriate images subdirectory.

astra’s picture

I can see the out-of-box icons only used for the administer panel. What I want is to custom the icons for some menu items created myself. I created menu items and put them into a control panel from the blocks module. All icons of them are the same as control_panel_default.png. So I'd like to know how to create custom icons for my menu items?

dreed47’s picture

Again, it's based on the path to your menu item. So if you created a new "page" node and it was accessable at "node/123" Then your icon name would be "node_123.png".

astra’s picture

Follow your instruction, I did a simple test:

For a menu item point drupal path en/node/33 (URL path settings en/products), I just changed the file name of an existing icon admin_user.png to one of the follows for testing:

node_33.png
en_node_33.png
products.png
en_products.png

But none of them works. I mean the users icon can't show up for that menu item. It always display control_panel_default.png.

In the same time, of course, I might see the users icon (en/admin/user) under the administer contrl panel access to control_panel_default.png. That's expected because its icon file name has been changed.

So the problem is I still can't create custom icons. Also if place an icon in an appropriate images subdirectory(files/images, for example), how to let the menu item access the icon under the images subdirectory?

dreed47’s picture

Not sure I understand exactly what you have done. Are you seeing any of the standard icon images? When you create your custom image what directory are you placing it in?

astra’s picture

I can find the standard 48x48 icons stored in modules/controlpanel/images/48x48.

I didn't yet upload my custom icons because I don't know where they should be placed. So I just change the name of the icon admin_user.png within modules/controlpanel/images/48x48 as my custom icon for testing. I didn't move that testing icon file anywhere. It still is in modules/controlpanel/images/48x48. But it doesn't work.

By the way, I'm working on drupal based multisites. The exact directory for the 48x48 icons like this:

sites/subsite.mainsite.com/modules/controlpanel/images/48x48

dreed47’s picture

Status: Active » Closed (won't fix)

Unless I can get more info about this issue I wont spend time trying to fix anything.

ramh’s picture

subscribe +1