Forums / General / Icons and classes

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

eZ debug

Timing: Jan 31 2025 06:23:19
Script start
Timing: Jan 31 2025 06:23:19
Module start 'content'
Timing: Jan 31 2025 06:23:19
Module end 'content'
Timing: Jan 31 2025 06:23:19
Script end

Main resources:

Total runtime0.1339 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 587.8047180.8516
Module start 'content' 0.00630.0076 768.656397.7109
Module end 'content' 0.01400.1198 866.3672525.8594
Script end 0.1338  1,392.2266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00332.4960200.0002
Check MTime0.00141.0264200.0001
Mysql Total
Database connection0.00110.839810.0011
Mysqli_queries0.088666.21611410.0006
Looping result0.00110.79921390.0000
Template Total0.119489.210.1194
Template load0.00090.660410.0009
Template processing0.118588.540010.1185
Override
Cache load0.00060.463310.0006
Sytem overhead
Fetch class attribute can translate value0.00040.314510.0004
XML
Image XML parsing0.00020.168010.0002
General
dbfile0.00735.4698200.0004
String conversion0.00000.004530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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