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.