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}
|