[SOLVED] the og:image in news module is always wrong
Posted: Sun Oct 12, 2014 5:39 pm
Hello everyone
to display images that load in the news module to use this string
and it works perfectly
<img src="{$entry->file_location}/{$entry->fieldsbyname.immagine->value}" alt="{$entry->title|cms_escape}" />
but in the template if i use this string for the og image
<meta property="og:image" content="<img src="{$entry->file_location}/{$entry->fieldsbyname.immagine->value}" />
the selected image is wrong
and there is but 'that of another news
why
thanks for help
the website is
http://www.teneriecoccolosi.it
to display images that load in the news module to use this string
and it works perfectly
<img src="{$entry->file_location}/{$entry->fieldsbyname.immagine->value}" alt="{$entry->title|cms_escape}" />
but in the template if i use this string for the og image
<meta property="og:image" content="<img src="{$entry->file_location}/{$entry->fieldsbyname.immagine->value}" />
the selected image is wrong
and there is but 'that of another news
why
thanks for help
the website is
http://www.teneriecoccolosi.it