Some functions on this portal require JavaScript but your browser does not support it or it has been disabled.
Skip to main content
Tuesday 10 October 2006 12:48:40 am - 1 reply
Modified on Tuesday 10 October 2006 7:10:13 pm by Matt Brady
Jacobo Quiles
Monday 06 November 2006 9:38:21 am
Hi!
You can always override the default link attribute template from ('design/standard/templates/content/datatype/view/ezurl.tpl') and add an extra parameter like this:
{default $target="_self"}
{section show=$attribute.data_text} <a href="{$attribute.content}" target={$target}>{$attribute.data_text|wash( xhtml )}</a> {section-else} <a href="{$attribute.content}" target={$target}>{$attribute.content|wash( xhtml )}</a>{/section}
{/default}
Then when u call the attribute and want it to open in new window do it like this:
{attribute_view_gui attribute=$node.data_map.location target="_blank"}
or
{attribute_view_gui attribute=$node.data_map.location}
to open in same window.
Cheers.
Microblau SL http://www.microblau.net
You must be logged in to post messages in this topic!