How can i fetch article id .need help

Author Message

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 203
and 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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.