Forums / Setup & design / Opening new window with attribute_view_gui

Opening new window with attribute_view_gui

Author Message

Ulrich L.

Thursday 17 March 2005 2:31:13 am

Hi,
with the following code I can force to open a link in a new window. (internet_adress is datatype "link")

<a href="{$node.object.data_map.internet_adress.content}" TARGET="_BLANK">                        
{$node.object.data_map.internet_adress.content}  </a>

Is there a way to do this by using only the attribute_view_gui command with special parameter? Where can I find doc about this?

{attribute_view_gui attribute=$node.object.data_map.internet_adress}

Ɓukasz Serwatka

Thursday 17 March 2005 3:27:38 am

Hi Uli,

You can use

{attribute_view_gui attribute=$node.object.data_map.internet_adress target=new}

but you must pass $target to your tpl file.

Override your ezurl.tpl

<a href="{$attribute.content}" target="{$target}">{$attribute.data_text|wash( xhtml )}</a>

http://ez.no/ez_publish/documentation/reference/template_functions/gui/attribute_view_gui

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog