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)

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 18 2025 21:10:46
Script start
Timing: Jan 18 2025 21:10:46
Module start 'layout'
Timing: Jan 18 2025 21:10:46
Module start 'content'
Timing: Jan 18 2025 21:10:46
Module end 'content'
Timing: Jan 18 2025 21:10:46
Script end

Main resources:

Total runtime0.0236 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.0079 587.8125152.6094
Module start 'layout' 0.00790.0045 740.421939.4141
Module start 'content' 0.01240.0084 779.835989.3359
Module end 'content' 0.02090.0027 869.171930.3047
Script end 0.0236  899.4766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003514.8819140.0003
Check MTime0.00135.2999140.0001
Mysql Total
Database connection0.00156.428710.0015
Mysqli_queries0.003313.963030.0011
Looping result0.00000.118110.0000
Template Total0.00208.610.0020
Template load0.00114.493110.0011
Template processing0.00104.107410.0010
Override
Cache load0.00073.143210.0007
General
dbfile0.00041.483280.0000
String conversion0.00000.042440.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