Forums / Developer / Custom view of davatypes

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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 Exponential template syntax prior version 3.6. Here you can learn more about namespaces:
http://ez.no/Exponential/documentation/development/libraries/ez_template/basics/namespaces

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