Forums / Setup & design / How to link an image?

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

How to link an image?

Author Message

lorenzo messori

Tuesday 10 May 2005 7:30:05 am

Hi all, i have a problem with link on image.
The code posted is an Override template for the content/embed.tpl template, but don't place a link to the image, that i want.
Anyone may help me?

{let href="" target="_blank"}
	{section show=is_set($object_parameters.href)}
		{set href=$object_parameters.href}
	{/section}
	{section show=is_set($object_parameters.target)}
		{set target=$object_parameters.target}
	{/section}
	{attribute_view_gui attribute=$object.data_map.image image_class=$object_parameters.size href=$href target=$target}
{/let}

Thx to all

Marko Žmak

Thursday 12 May 2005 4:41:41 pm

You can like to image with something like this:

{$image_object.data_map.image.content.original.url}

Also if you want to see what thata the image object hold try using this:

{$image_object|attribute(show)}

or

{$image_object.data_map.content|attribute(show)}

Is this what you were looking for?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth