Jump to content

SEO Tools & OG Image


Recommended Posts

Hi there,

Is there a way to dynamically add the OG:image URL in the header of the page using pages without using the SEO tools? The SEO tools are not exactly dependable and not very user friendly. I want to use an image that is uploaded in pages for that specific entry ^_^ 

For who doesn't know what og:image is:

Facebook, and other tools show this image when sharing a page ^_^   Its extremely useful for articles.

Link to comment
Share on other sites

If you use the Record Image field, it will automatically populate the og:image field with the image uploaded to that field. 

Otherwise you can assign any meta tags (including Open Graph, Twitter Cards) like this from within the template. 

{{\IPS\Output::i()->metaTags['twitter:image'] = (string) \IPS\File::get('cms_Records', $record->record_image ) ->url;}}

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...