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

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

eZ debug

Timing: Jan 20 2025 17:36:11
Script start
Timing: Jan 20 2025 17:36:11
Module start 'layout'
Timing: Jan 20 2025 17:36:11
Module start 'content'
Timing: Jan 20 2025 17:36:12
Module end 'content'
Timing: Jan 20 2025 17:36:12
Script end

Main resources:

Total runtime0.6969 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 588.0469151.2266
Module start 'layout' 0.00590.0028 739.273436.6797
Module start 'content' 0.00870.6869 775.9531552.5859
Module end 'content' 0.69570.0012 1,328.53917.8125
Script end 0.6969  1,336.3516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.5274160.0002
Check MTime0.00130.1907160.0001
Mysql Total
Database connection0.00090.127710.0009
Mysqli_queries0.659594.6274540.0122
Looping result0.00040.0587520.0000
Template Total0.669196.020.3345
Template load0.00190.267720.0009
Template processing0.667295.734620.3336
Template load and register function0.00010.018210.0001
states
state_id_array0.00090.127110.0009
state_identifier_array0.00070.097020.0003
Override
Cache load0.00160.2248170.0001
Sytem overhead
Fetch class attribute can translate value0.00070.101720.0004
Fetch class attribute name0.00090.123430.0003
XML
Image XML parsing0.00070.094420.0003
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00090.1265180.0000
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs