-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
put multiple versions of the same tag #16583
Conversation
@kernusr can you please write the "Summary of Changes" also in English – thanks. |
@franz-wohlkoenig oops! Sory |
// B/C old http_equiv parameter. | ||
if (!is_string($attribute)) | ||
{ | ||
$attribute = $attribute == true ? 'http-equiv' : 'name'; | ||
} | ||
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove tabs.
I have tested this item ✅ successfully on bb096d5 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16583. |
cs: Remove tabs
I have tested this item ✅ successfully on 9ba276b This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16583. |
@franz-wohlkoenig Please RTC as the last change was to remove tabs which would not affect the test result. Thanks. |
RTC after two successful tests. |
Pull Request for Issue # .
Summary of Changes
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)
Testing Instructions
Call in your code
JFactory::getDocument()->setMetaData("og:image", array("/image1.jpg", "/image2.jpg", "/image3.jpg"), 'property');
Expected result
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" />
Documentation Changes Required
https://api.joomla.org/cms-3/classes/JDocument.html#method_setMetaData
Replace this: