Thursday 23 September 2004 9:45:54 am
By default ezpubli displays the value of the field "name" in the ALT and TITLE attribute of an image.
I'd like to know if I can change this. I want it to display the value of the field "Caption"
I found out the template for this piece of code is design/standard/templates/content/datatype/view/ezimage.tpl
{section show=$href}
<a href={$href}
{section show=$target}target={$target}
{/section}>
{/section}
<img src={$image.url|ezroot}
width="{$image.width}"
height="{$image.height}"
{section show=$hspace}hspace="{$hspace}"{/section}
border="{$border_size}"
alt="{$image.text|wash(xhtml)}"
title="{$image.text|wash(xhtml)}" />
{section show=$href}</a>
{/section}
So the value is the variable $image.text But where can you define this variable? Any suggestion that could lead to a solution would be very much appreciated.
|