Finding objectclass ID in templates

Author Message

Yvan Cottyn

Thursday 18 September 2003 5:33:28 am

Hi all,

I'm trying to get the content class ID from stuff i fetched in a template.
I can find similar php code but not a template example/docs. Here is what i'm trying to do:

{section name=Thing loop=$stuff_i_fetched}
{switch match=$Thing:item.???????????}
{case match=x}
Thing is of contentclass with ID x so we do this ....
{/case}
{case}
else we do the default
{/case}
{/switch}
{/section}

Anyone can replace the question marks with what i am looking for?

TIA
vanne

Yvan Cottyn

Thursday 18 September 2003 5:56:26 am

wrong list, sorry guys

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