link open in blank page

link open in blank page

Tuesday 10 October 2006 12:48:40 am - 1 reply

Modified on Tuesday 10 October 2006 7:10:13 pm by Matt Brady

Author Message

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!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.