Jump to content

Using the image caption as an alt tag


Recommended Posts

I've been trying to change the product-list.tpl so that the image alt tag uses the caption rather than the product name:

getImageLink($product.link_rewrite, $product.id_image, 'home')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" title="{$product.legend|escape:'htmlall':'UTF-8'}" width="{$homeSize.width}" height="{$homeSize.height}" />



Is there any way of changing the code: {$product.legend|escape:'htmlall':'UTF-8'} to use the content of the image caption?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...