More meta tag issues. Sorry.
I'm having trouble getting the "correct" og:image tag code to be produced on my assigned content.
I can see why its not working, but I'm not sure (well have no idea) how to fix it.
Any help appreciated.
At the top of my template I have:
Code: Select all
{strip}
{process_pagedata}
{content assign='main_content'}
{content block='main_image' label='Main_Image' assign='main_image'}
Code: Select all
<meta property='og:image' content='{if ! empty($main_image)}{$main_image}{else}path to default/uploads/images/logo.png{/if}'/>
At the moment I output:
Code: Select all
meta property='og:image' content='<img title="title" src="uploads/images/company/main.jpg" alt="title">'/>
Thanks again for any help.
Cheers,
Paul