Link image in xml editor

Author Message

Guy Brun

Wednesday 31 May 2006 12:39:49 am

I try to put an external link on an image using the XML editor. I have made an override for /content/view/embed.tpl

The template code for fetching the href is:
{section show=is_set($object_parameters.href)}
{set href=$object_parameters.href}
{section-else}
{set href=""}
{/section}

The output of {$object_parameters|attribute(show())} gives only

Attribute Type
align string
size string

Why is href missing? Anyone with same experience?

Thanks, GSB

Kirill Subbotin

Wednesday 31 May 2006 4:40:51 am

If this is a linked image, probably you should try $link_parameters.href

Guy Brun

Wednesday 31 May 2006 5:04:35 am

Yes, that did work :-)

Thanks
-GSB

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