petrulius
(Peter)
November 10, 2023, 5:34pm
1
I want to change the metatag in Plone 5.0:
Old:
<meta property="og:image" tal:attributes="content string:${context/absolute_url}/image"/>
New:
<meta property="og:image" tal:attributes="content string:${context/absolute_url}/@@images/image/preview"/>
In zope.interface.interface-plone.htmlhead.dublincore I can add the new tag, but the old one remains and is displayed under the new tag.
How can I overwrite the old tag so that only the new tag is displayed in the source code?
petrulius
(Peter)
November 14, 2023, 5:13pm
2
petrulius:
string
I have just realised that I had formatted the source text incorrectly in my first message. Now you can also see
In the meantime I have realised that the tags are called in this file:
/portal_view_customizations/zope.interface.interface-plone.htmlhead.socialtags
Hier wird es so aufgerufen:
<span id="social-tags-body" style="display: none"
itemscope itemtype="http://schema.org/WebPage">
<span tal:repeat="tag view/body_tags"
tal:attributes="itemprop tag/itemprop|nothing"
tal:content="tag/content|nothing" />
</span>
Of course I can customise this file, leave it empty and create all meta tags again. But actually I would rather just change the necessary tags. Does anyone know how to do this?
1letter
(Jan)
November 14, 2023, 7:03pm
3
The social tag viewlet use the "great" scale defintion to deliver the images, use this scale?
petrulius
(Peter)
November 14, 2023, 7:18pm
4
That looks good, but how can I customise the social.py?