User tests: Successful: Unsuccessful:
Pull Request for Issue # .
Changed the type of the parameter $content from a string to an array in the setMetaData method of the JDocument class.
This will allow you to add multiple identical tags with different values. For example og:image (http://ogp.me/#array)
Call in your code
JFactory::getDocument()->setMetaData("og:image", array("/image1.jpg", "/image2.jpg", "/image3.jpg"), 'property');
View the source of the page in the browser.
You should see the following code in head:
<meta property="og:image" content="/image1.jpg" /> <meta property="og:image" content="/image2.jpg" /> <meta property="og:image" content="/image3.jpg" />
https://api.joomla.org/cms-3/classes/JDocument.html#method_setMetaData
Replace this:
$content string Value of the meta HTML tag
with this:
$content mixed Value of the meta HTML tag as array or string
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
Title |
|
||||||
Labels |
Added:
?
|
@franz-wohlkoenig oops! Sory
Title |
|
I have tested this item
I have tested this item
@franz-wohlkoenig Please RTC as the last change was to remove tabs which would not affect the test result. Thanks.
Status | Pending | ⇒ | Ready to Commit |
Title |
|
RTC after two successful tests.
Milestone |
Added: |
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-07-19 12:15:53 |
Closed_By | ⇒ | mbabker |
@kernusr can you please write the "Summary of Changes" also in English – thanks.