Monday 02 February 2009 2:31:27 pm
>>Did you try what I posted in my last message: >>{$node.data_map.country.content.value[$node.data_map.country.data_text].name}?
<b>I tried this but it didn't work either. It returns a blank line. I am using Ver 4.0. Could it be the changes in the structure of country datatype?</b>
The following worked for me:
{def $country=fetch( 'content', 'country_list', hash( 'filter', 'Alpha2', 'value', $node.object.data_map.country.data_text) )} {$country.Name}
>>As for the date question, have you tried attribute_view_gui (http://ez.no/doc/ez_publish/techn...e/template_functions/visualization)?
No, I haven't tried that.
Again, the {$node.data_map.bday|attribute(show,2)} was very helpful and I used the following to display Birthday date: Birthday (dd-mm): {$node.data_map.bday.content.day} - {$node.data_map.bday.content.month} ({$node.data_map.bday.content.zodiac_name}) I am still working on refining it to display month in words instead of number. Thanks for all your help!! Regards Ritu
|