Custom icons

Author Message

Christian Johansen

Monday 30 April 2007 12:24:34 am

I created a couple of content classes, and I want them to have their own icons. I added extension/myext/settings/override/icon.ini.append and added the right ClassIcons - ClassMap[myclass] = myicon.png

The only problem is that eZ tries to load share/icons/crystal-admin/16x16_indexed/myicon.png

I created extension/myext/share/icons/crystal-admin/16x16_indexed/myicon.png hoping it would "magically" grab the icon from there but it didn't. Is there a way I can get eZ to grab the icon from somewhere else than inside the crystal-admin theme, but still use the crystal-admin theme as the base theme?

Heath

Monday 30 April 2007 12:53:24 am

I have used the following solution with great success,

Latest source: <i>http://pubsvn.ez.no/community/trunk/hacks/icons_in_extension/</i>
About: <i>http://ez.no/community/contribs/hacks/icon_themes_in_extensions_patch</i>

hth,

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Felix Woldt

Monday 30 April 2007 12:58:09 am

Hello Christian,

We had the same problem. We solve the problem in that way:

We create a new 'Theme' and copy all icons from for example crystal-admin in it and our custom ones.

[IconSettings]
Repository=extension/my-theme/share/icons
Theme=my-theme

I didn't find a way to use several icon folders. You can only use one icon folder at the same time.

Greetings
Felix

http://www.jac-systeme.de - Developers united in eZ Publish: http://www.cjw-network.com

CJW Newsletter 1.0.0 released: http://projects.ez.no/cjw_newsletter

Felix Woldt

Monday 30 April 2007 1:02:59 am

@Heath

thank's for the tipp. I will check it out.

Felix

http://www.jac-systeme.de - Developers united in eZ Publish: http://www.cjw-network.com

CJW Newsletter 1.0.0 released: http://projects.ez.no/cjw_newsletter

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 31 2025 08:19:12
Script start
Timing: Jan 31 2025 08:19:12
Module start 'layout'
Timing: Jan 31 2025 08:19:12
Module start 'content'
Timing: Jan 31 2025 08:19:12
Module end 'content'
Timing: Jan 31 2025 08:19:12
Script end

Main resources:

Total runtime0.0186 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.0066 588.0078151.1953
Module start 'layout' 0.00660.0026 739.203136.6172
Module start 'content' 0.00920.0078 775.820394.2344
Module end 'content' 0.01700.0016 870.054733.9922
Script end 0.0186  904.0469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002714.7346140.0002
Check MTime0.00116.0511140.0001
Mysql Total
Database connection0.00084.263710.0008
Mysqli_queries0.003116.514330.0010
Looping result0.00000.075510.0000
Template Total0.00126.510.0012
Template load0.00105.139410.0010
Template processing0.00021.309810.0002
Override
Cache load0.00073.688810.0007
General
dbfile0.003317.802480.0004
String conversion0.00000.037140.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