How to use URL attribute to make a <a href> ? (solved)

Author Message

laurent le cadet

Friday 13 May 2005 12:33:36 am

Hi,

I made a class with an image and a url attribute.
I want to use the the $node.object.data_map.url to make a link on the image :

<a href="{$node.object.data_map.url}" 
target="_blank">
{attribute_view_gui attribute=$node.object.data_map.image 
image_class=original}
</a>

Which is the syntax please ?
I can't find nothing to guide me.

Thanks.

Laurent.

solved :

<a href="{$node.object.data_map.url.content}" target="_blank">
		{attribute_view_gui attribute=$node.object.data_map.image image_class=original}
		</a>

nehal shah

Wednesday 13 April 2011 3:13:40 am

Hi laurent le cadet,

Your solution is very helpful to me.

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 29 2025 23:48:55
Script start
Timing: Jan 29 2025 23:48:55
Module start 'layout'
Timing: Jan 29 2025 23:48:55
Module start 'content'
Timing: Jan 29 2025 23:48:56
Module end 'content'
Timing: Jan 29 2025 23:48:56
Script end

Main resources:

Total runtime0.9244 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.0046 589.4141151.2266
Module start 'layout' 0.00460.0019 740.640636.6797
Module start 'content' 0.00650.9172 777.3203464.2969
Module end 'content' 0.92370.0007 1,241.61727.8125
Script end 0.9244  1,249.4297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.3178160.0002
Check MTime0.00120.1305160.0001
Mysql Total
Database connection0.00080.085710.0008
Mysqli_queries0.888996.1579540.0165
Looping result0.00040.0447520.0000
Template Total0.897997.120.4489
Template load0.00230.245520.0011
Template processing0.895696.880920.4478
Template load and register function0.00010.011510.0001
states
state_id_array0.00140.147810.0014
state_identifier_array0.00090.096820.0004
Override
Cache load0.00180.1990170.0001
Sytem overhead
Fetch class attribute can translate value0.00050.053820.0002
Fetch class attribute name0.00090.102030.0003
XML
Image XML parsing0.00160.169520.0008
class_abstraction
Instantiating content class attribute0.00000.000630.0000
General
dbfile0.00170.1868160.0001
String conversion0.00000.000640.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs