Jump to content

[solved] how to get second image link?


fernandokerber

Recommended Posts

Hi

 

I have this code in my LikeALot facebook plugin.

 

{if $product}
<meta property="og:title" content="{$product.name|escape:'htmlall':'UTF-8'}"/>
<meta property="og:type" content="product"/>
<meta property="og:image" content="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home')}"/>
<meta property="og:description" content="descricao."/>
<meta property="og:url" content="http://{$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}"/>
{/if}

 

This code puts into og:image the address of the product cover image. But how can i set the og:image pointing to the secod product image?

Edited by fernandokerber (see edit history)
Link to comment
Share on other sites

  • 2 months later...

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...