Forums / Setup & design / How to use URL attribute to make a <a href> ? (solved)

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.