J!Extensions Store™
Forum
Welcome, Guest
Please Login to access forum.
Re:Add itemprop="image" in Meta (1 viewing) 
Go to bottom
TOPIC: Re:Add itemprop="image" in Meta
#7737
John Dagelmore
Admin
Posts: 3716
User Offline
Re:Add itemprop="image" in Meta Karma: 79  
The feature of jsitemap uses the standard Joomla API for custom meta tags, thus the itemprop="image" addition is not supported. You should switch to a custom tag API instead.

To do this you should customize the source code of the plugin file:

root/plugins/system/jmap/jmap.php

at the line 323, changing from:

Code:

$document->setMetaData('og:image', $imageLink, 'property');
to
Code:

$document->addCustomTag('<meta property="og:image" itemprop="image" content="' . $imageLink . '" /> ');
The same is valid for the addition of og:type, you can add below the line:
Code:

$document->setMetaData('og:type', 'article');
By the way if you need advanced management of Open Graph tags, you may consider to switch to another specific and more advanced plugin, obviously this is not a key feature of jsitemap. Best regards
 
Logged Logged  
  The administrator has disabled public write access.
Go to top