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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 20:00:06
Script start
Timing: Jan 19 2025 20:00:06
Module start 'layout'
Timing: Jan 19 2025 20:00:06
Module start 'content'
Timing: Jan 19 2025 20:00:06
Module end 'content'
Timing: Jan 19 2025 20:00:06
Script end

Main resources:

Total runtime0.0196 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 589.0313152.6094
Module start 'layout' 0.00780.0033 741.640639.4141
Module start 'content' 0.01110.0065 781.054793.1797
Module end 'content' 0.01750.0020 874.234434.3047
Script end 0.0195  908.5391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002613.2880140.0002
Check MTime0.00125.8840140.0001
Mysql Total
Database connection0.00136.804810.0013
Mysqli_queries0.003417.451030.0011
Looping result0.00010.627310.0001
Template Total0.00178.610.0017
Template load0.00094.633110.0009
Template processing0.00083.938910.0008
Override
Cache load0.00063.228810.0006
General
dbfile0.00147.088680.0002
String conversion0.00000.056040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs