loop thru class attributes II

Author Message

andre müller

Tuesday 15 April 2003 10:07:42 am

i am trying to get the attribute with a given id:
{let test=fetch('content','class_attribute',hash(attribute_id,179,version_id,0))}

now, this class attribute is an enum type. how can i loop through the enumelement and enumvalue data???

I tried this:

{let test=fetch('content','class_attribute',hash(attribute_id,179,version_id,0))}
{section name=Testing loop=$test}
WHAT GOES HERE???
{/section}
{/let}

thanks a lot for hints!

Jan Borsodi

Wednesday 16 April 2003 1:35:42 am

Look at the file design/standard/templates/content/datatype/edit/ezenum.tpl for an example. The code there has four types of representations so you only need to pick the one you require.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

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