Forums / General / Icons and classes

Icons and classes

Author Message

Carlos Revillo

Monday 19 December 2005 6:45:54 am

Hi again. A brief question. I'm working with custom content classes. What i want is assign a icon to these classes for the admin interface. Is this posible?

I mean, when i add a folder to a node, icon folder.png is presented in content tree. how can i assign custom.png icon to custom class? thanks.

Mark Marsiglio

Monday 19 December 2005 5:22:16 pm

You can modify the icons by adding your new icons to the share/icons/crystal-admin/ folder, and creating variations for each of the size as appropriate.

When you need to add a new one to work with a custom class, you need to create an icon.ini override in your admin siteaccess settings folder, to override the original icon.ini in the share/icons/crystal-admin folder. Add a new line with the class identifier and icon file name.

From the header of the ini file...."It is not recommended to edit this files directly, instead a file in override should be created for setting the values that is required for your site. Either create a file called settings/override/icon.ini.append or settings/override/icon.ini.append.php for more security in non-virtualhost modes (the .php file may already be present and can be used for this purpose)."

However, you should take a look at the original icon.ini to see the structure and options available.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Carlos Revillo

Tuesday 20 December 2005 10:21:34 am

thanks a lot. that is what i need.

Nabil Alimi

Monday 22 May 2006 3:46:05 am

Is there any cleaner way to achieve this ?

Can the share folder be extended ?

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

Bayron Guevara

Thursday 25 September 2008 12:44:38 pm

You need edit the override in admin siteaccess for icon.ini file. For examples about useful configuration directives see: share/icons/crystal/icon.ini.

<i>ClassIcons</i> and <i>ClassGroupIcons</i> assign icon files for content classes and groups content classes respectively.

Web Developer & Modern Philosopher
Visit http://www.laprensa.hn, http://www.diez.hn, http://www.estilo.hn