Custom view of davatypes

Author Message

Fox Mulder

Friday 14 September 2007 5:58:39 am

Hello all,

Is there someone who can tell me what is the purpose and works this rows:
{let data_text=cond( is_set( $#collection_attributes[$attribute.id] ), $#collection_attributes[$attribute.id].data_text, $attribute.content )}

I saw them in this example:
{default attribute_base='ContentObjectAttribute'}
{let data_text=cond( is_set( $#collection_attributes[$attribute.id] ), $#collection_attributes[$attribute.id].data_text, $attribute.content )}
<select name="{$attribute_base}_ezstring_data_text_{$attribute.id}">
<option value="">Scegli...</option>
<option value="Roma" {section show=eq( $data_text|wash(xhtml), 'Roma')}selected{/section}>Roma</option>
<option value="Milano" {section show=eq( $data_text|wash(xhtml), 'Milano')}selected{/section}>Milano</option>
<option value="Torino" {section show=eq( $data_text|wash(xhtml), 'Torino')}selected{/section}>Torino</option>
</select>
{/let}
{/default}

Ɓukasz Serwatka

Sunday 16 September 2007 11:16:54 pm

It is old eZ Publish template syntax prior version 3.6. Here you can learn more about namespaces:
http://ez.no/ezpublish/documentation/development/libraries/ez_template/basics/namespaces

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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