Forums / Setup & design / [Solution] Sitemap with classdepending Icons

[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 - eZ Publish, Ibexa, SOLR, Elastic Search