Jump to content

Database article image tag

Featured Replies

Posted

I wanna ad this to articles

meta property="og:image:url" content="ARTICLE IMAGE" />

What is code for that image path?

  • Author
{file="$record->_record_image_thumb" extension="cms_Records"}

? edit: not working

The meta tag with og:image property already added on article page

\applications\cms\modules\front\database\record.php

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

 

  • Author

I know, its differend tag

http://ogp.me/

Quote
  • og:image:url - Identical to og:image.

Anyway you can use above code. Just change some data

2 hours ago, Owdy said:

I know, its differend tag

So why do you need it? I checked, but I can’t find any other information than it being identical to the already used og:image. 

Archived

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

Recently Browsing 0

  • No registered users viewing this page.