Forums / Developer / Add icon to a class

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Add icon to a class

Author Message

Roberto Bermejo

Wednesday 21 February 2007 3:25:15 am

Hi all, how can to add a customize icon to a class made by me? For example, the icon for the folder class, or the icon for de link class, the icon for de comment class, etc, etc...

Thanks

Sébastien Morel

Wednesday 21 February 2007 4:12:22 am

Hi,

In your eZ install directory, you have a "share/icons" directory you can duplicate an existant directory (crystal for example), rename it and after you can customize the icon.ini configuration file in the new theme directory.

When the theme is ok, in your icon.ini of the sitacess admin add :

[IconSettings]
Theme=nameofthemedirectory
Size=normal

to activate the new theme.

For icon mapping :

ClassMap[identifier]=direcftory/nameofimg.ext

++

--
eZ c'est plus fort que toi !
http://www.ez-france.org
http://blog.plopix.net
@Novactive (http://www.novactive.com)