Forums / Install & configuration / How can i setup multiple pathes for custom icons images ?

How can i setup multiple pathes for custom icons images ?

Author Message

H-Works Agency

Sunday 27 November 2005 6:14:22 pm

My first rule when using EZP is to never (when possible) modify the default dir contents to make upgrades as simple as possible.

My problem is that i didn't find a way until now not to modify 'share/icons/' cause its the only place where i can put my custom classes icons images.

How should i handle this ?

It's pretty obvious for me that you should put a 'IconRepository[]=' in icon.ini.

This way we could put per-siteaccess icons repository.

Thanx
Martin

EZP is Great

Ɓukasz Serwatka

Monday 28 November 2005 12:01:05 am

Hi Martin,

This is not possible for now with eZ publish. Currently you can have only one Repository (default 'share/icons') path, however you can add there your icons in new folders, and use icon.ini.append.php per siteaccess.

You can put icon.ini in your new icon theme directory and this settings will use for new theme, look on
share/icons/crystal/icon.ini for more examples.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

eZ debug

Timing: Jan 18 2025 22:30:41
Script start
Timing: Jan 18 2025 22:30:41
Module start 'content'
Timing: Jan 18 2025 22:30:42
Module end 'content'
Timing: Jan 18 2025 22:30:42
Script end

Main resources:

Total runtime0.6756 sec
Peak memory usage4,096.0000 KB
Database Queries55

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 589.0938180.8047
Module start 'content' 0.00720.6602 769.8984539.1953
Module end 'content' 0.66740.0081 1,309.093842.0391
Script end 0.6755  1,351.1328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.5922140.0003
Check MTime0.00140.2091140.0001
Mysql Total
Database connection0.00090.135110.0009
Mysqli_queries0.625792.6132550.0114
Looping result0.00060.0954530.0000
Template Total0.645395.520.3226
Template load0.00210.314420.0011
Template processing0.643195.193220.3216
Template load and register function0.00010.013210.0001
states
state_id_array0.00100.141710.0010
state_identifier_array0.00190.274920.0009
Override
Cache load0.00180.2673170.0001
Sytem overhead
Fetch class attribute can translate value0.00130.191720.0006
Fetch class attribute name0.00150.225340.0004
XML
Image XML parsing0.00110.156220.0005
class_abstraction
Instantiating content class attribute0.00000.001240.0000
General
dbfile0.00120.1782270.0000
String conversion0.00000.000930.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs