[Solution] Sitemap with classdepending Icons

Author Message

Ekkehard Dörre

Friday 16 May 2003 7:28:39 am

Open design/standard/templates/node/view/sitemap.tpl

Look line 67
<img src={"class_2.png"|ezimage} alt="Folder" border="0">
replace with
<img src={concat("class_",$Tree:item.object.contentclass_id,".png")|ezimage} alt="{$Tree:item.object.class_name|wash}" border="0">

Create new Icons and put them into design/standard/images
class_1.png (class 1 = folder) and class_2.png (class 2 = article) is there.
... and please upload them to the contribution folder:
http://ez.no/developer/ez_publish_3/contributions

That's it, and don't forget to clean the cache ;-)

Greetings ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

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 11:13:47
Script start
Timing: Jan 18 2025 11:13:47
Module start 'layout'
Timing: Jan 18 2025 11:13:47
Module start 'content'
Timing: Jan 18 2025 11:13:48
Module end 'content'
Timing: Jan 18 2025 11:13:48
Script end

Main resources:

Total runtime1.3727 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 589.1641152.6406
Module start 'layout' 0.00710.0036 741.804739.4766
Module start 'content' 0.01061.3607 781.2813471.7344
Module end 'content' 1.37130.0014 1,253.01568.2813
Script end 1.3727  1,261.2969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2361160.0002
Check MTime0.00140.0996160.0001
Mysql Total
Database connection0.00090.068010.0009
Mysqli_queries1.331496.9895460.0289
Looping result0.00040.0319440.0000
Template Total1.335297.320.6676
Template load0.00200.142520.0010
Template processing1.333397.123020.6666
Template load and register function0.00010.007610.0001
states
state_id_array0.00090.066910.0009
state_identifier_array0.00230.170820.0012
Override
Cache load0.00150.1118150.0001
Sytem overhead
Fetch class attribute can translate value0.00050.036210.0005
Fetch class attribute name0.00080.055420.0004
XML
Image XML parsing0.00040.032710.0004
class_abstraction
Instantiating content class attribute0.00000.000420.0000
General
dbfile0.00090.0652160.0001
String conversion0.00000.000840.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs