image in link?

Author Message

mario feichtinger

Friday 25 July 2003 12:29:11 am

hello!
how can i get an image into a link?
like this <a href="{attribute_view_gui attribute=$node.object.data_map.downloadbild}">Download</a>
which possibilities i have for this problem? should i create a new datatype, or only need a override template for ezimage.tpl?
please help!!!
mario

Alex Jones

Friday 25 July 2003 6:39:15 am

You should be able to use an override template. Simply add the appropriate eZ code to your template to display the image instead of, or in addition to the text.

An example of how to display the image would be to use:
{attribute_view_gui attribute=$content_version.data_map.image image_class=large}

Assuming the field in your class is titled "image". If it is something else change data_map.image to data_map.the_proper_field_name.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Tony Wood

Friday 25 July 2003 9:43:11 am

Hey Mario,

You might want to try the tag

<object id="id"[ align="left|right|center" size="small|medium|large" class="foo" view="embed|text_linked" href="link url" target="_self|_blank"]/> where 'id' should be an existing eZ object id and all other attributes are optional. Attributes 'href' and 'target' are used to make object(image) as link.

from http://ez.no/manual/user/everyday#Tags
This is new to 3.1

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

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