Forums / General / How can i fetch article id .need help
sangib das
Wednesday 23 August 2006 9:29:26 pm
I have a folder name News . In that folder a have 10 articles.
Articls Name Article id 1.aaaaa 200 2.bbbbb 202 3.cccc 203and so on.............
{let matchme=$node.object.data_map.news_title.contentobject_id} {$matchme} {switch match=$matchme} {case match='200'} {include uri="design:article1.tpl"} {/case} {case match=201 {attribute_view_gui attribute=$node.object.data_map.news_title}{/case}
{case} {attribute_view_gui attribute=$node.object.data_map.news_title} {/case} {/switch}{/let}
Kristof Coomans
Wednesday 23 August 2006 11:11:12 pm
Hello Sangib
Is it the object id or node id you are looking for?
Try to use {let matchme=$node.object.id} for object id, or {let matchme=$node.node_id} for the node id.
independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org