Tuesday 07 August 2007 3:20:06 am
Hi Heath, Many thanks for your input. I did go with the solution mentioned in my previous post (custom made data types is too complicated, at least for me). Unfortunately I ran into new problems. Mostly because in my templates I can't check if tha attribute has a value or not. I have my own user class, with about 20 attributes. Most of them are text line, so on various pages I use something like
Location:
{if $:item.object.data_map.city.has_content}
{attribute_view_gui attribute=$:item.object.data_map.city},
{/if}
Previously for enum-datatype I used
<p><strong>{'Organisation - geographic outreach'|i18n('design/standard/user/register')}:</strong><br />
{foreach $user.contentobject.data_map.organisationoutreach.content.enumobject_list as $element}
{$element.enumelement}<br />
{/foreach}</p>
.. which worked well. But changing to the new data type i CAN'T retrieve the value. A simple 'object.has.content' like above only returns <i>ezcontentclassattribute</i>. i tried with '$myobject(attribute(show)' in numerous variations but can't figure out how to do it from the result... Any ideas, Jesper
|