Icon for folder objects?

Author Message

Jan Bengia

Wednesday 08 June 2005 12:41:07 pm

Hi,
how do I assign icons to classes/objects in the admin->content view?
I copied the folder-class and modified it. Now it's assigned to some general "sheet"-icon. I want it to be assigned to the folder-icon. Is there an easy way to do this?

BTW: Where are the class-overrides located (path)? I haven't found this information in the documentation ...?

thanks a lot
Jan

Craig Hirsch

Wednesday 08 June 2005 1:49:07 pm

Yes, this is very easy.

FYI, icons in the default admin theme are stored in:

/share/icons/crystal-admin

and icon settings are in the icon.ini settings file.

To set up your new content class to appear with the folder icon, override icon.ini for your admin siteaccess as follows:

[ClassIcons]
ClassMap[YOUR_NEW_CLASS_IDENTIFIER]=filesystems/folder.png

Clear your caches and that should do it.

--
chirsch{AT}gmail{d.t}com

Craig Hirsch

Wednesday 08 June 2005 1:50:52 pm

To address your second question -- what do you mean by "class overrides?" Can you explain further what you're looking for and/or looking to do?

--
chirsch{AT}gmail{d.t}com

Jan Bengia

Wednesday 08 June 2005 3:29:37 pm

Hi, thanks for your help! I'll try that icon-stuff.

Regarding my second question: Uhm, what I mean is:
I work in an multisite-environment. When I create new templates, I place them in the specific folder for the siteaccess (htdocs/design/[site]/templates/).
But when I create new Classes (like "member" with "name"-attribute and so on) via the admin frontend: In wich folder (of the file-system) are they placed? And how does the Admin-FE know which classes belong to which siteacceses?

And with "overrides" I mean: When I modify existing classes, the changes are only aviable in the specific siteaccess. So somewhere exists the original class and somewhere the "overwrite" class ...?

Hmm, I hope I got my point across :)
greets
Jan

Craig Hirsch

Wednesday 08 June 2005 8:52:44 pm

Yep, I understand what you're asking now. Content classes, including new ones that you create, aren't stored in the filesystem at all. They're entirely database-derived constructs. Each class, and each attribute of each class, is stored in the database.

Quite honestly, I'm not certain that new classes are specific to a particular siteaccess. I've personally never worked in an environment with a lot of sites served from one eZ instance. Can anybody else comment as to how this works?

--
chirsch{AT}gmail{d.t}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:01:15
Script start
Timing: Jan 18 2025 21:01:15
Module start 'layout'
Timing: Jan 18 2025 21:01:15
Module start 'content'
Timing: Jan 18 2025 21:01:16
Module end 'content'
Timing: Jan 18 2025 21:01:16
Script end

Main resources:

Total runtime0.7396 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 587.9063152.6250
Module start 'layout' 0.00510.0029 740.531339.4453
Module start 'content' 0.00800.7302 779.9766558.8906
Module end 'content' 0.73810.0014 1,338.867212.1641
Script end 0.7396  1,351.0313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4488160.0002
Check MTime0.00140.1871160.0001
Mysql Total
Database connection0.00060.086910.0006
Mysqli_queries0.685192.6204630.0109
Looping result0.00060.0848610.0000
Template Total0.709796.020.3549
Template load0.00210.279520.0010
Template processing0.707795.676920.3538
Template load and register function0.00020.030410.0002
states
state_id_array0.00080.114410.0008
state_identifier_array0.00090.121320.0004
Override
Cache load0.00170.2352340.0001
Sytem overhead
Fetch class attribute can translate value0.00090.126820.0005
Fetch class attribute name0.00140.193960.0002
XML
Image XML parsing0.00060.079020.0003
class_abstraction
Instantiating content class attribute0.00000.002480.0000
General
dbfile0.00080.1109160.0001
String conversion0.00000.001040.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs