Author Topic

Bård Farstad

Tuesday 14 October 2008 12:50:02 am

Comment36413

Hi Jon Arvid,

long time no see ;)

For the object name pattern you are not able to have a condition that shows either one (nick) or two (first + last name). You can only have one condition like your example.

So, to solve this you should use template code where you want to display the nick (if set) or the full name. The template code would look something like this:

{if $node.object.data_map.nick.content|eq("")}
    {attribute_view_gui attribute=$node.object.data_map.first_name}  {attribute_view_gui attribute=$node.object.data_map.last_name}
{else}
    {attribute_view_gui attribute=$node.object.data_map.nick} 
{/if}

You would then use this template code in wherever you want to show the users profile.

Hope this helps.

--bård

Documentation: http://ez.no/doc