Skip to content
Snippets Groups Projects
Commit 679f9c3e authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Removing default values for publisher in structured data implementation

parent d302b537
No related branches found
No related tags found
No related merge requests found
......@@ -99,10 +99,10 @@ plugin.tx_sgnews {
sortBy = date
# The publisher value for the structured data implementation (see single view template)
publisher = SGalinski Internet Services
publisher =
# The logo value for the structured data implementation (see single view template)
publisherLogo = https://cdn.sgalinski.de/fileadmin/media/news/logoWithoutText.png
publisherLogo =
}
features {
......
......@@ -4,29 +4,35 @@
{namespace rx=Reelworx\RxShariff\ViewHelper}
<f:section name="main">
<f:alias map="{leftBrace: '{', rightBrace: '}'}">
<script type="application/ld+json">
{leftBrace}
"@context": "http://schema.org/",
"@type": "NewsArticle",
"author": "{newsMetaData.news.author}",
"publisher": {leftBrace}
"@type": "Organization",
"name": "{settings.publisher}",
"logo": {leftBrace}
"@type": "ImageObject",
"url": "{settings.publisherLogo}"
{rightBrace}
{rightBrace},
"image": "<f:uri.image absolute="TRUE" image="{newsMetaData.imageObject}" />",
"headline": "{newsMetaData.news.navTitle}",
"description": "{newsMetaData.news.description}",
"dateCreated": "<f:format.date format="Y-m-d">{newsMetaData.news.creationDate}</f:format.date>",
"datePublished": "<f:format.date format="Y-m-d">{newsMetaData.news.creationDate}</f:format.date>",
"dateModified": "<f:format.date format="Y-m-d">{newsMetaData.news.lastUpdated}</f:format.date>"
{rightBrace}
</script>
</f:alias>
<f:if condition="{settings.publisher}">
<f:if condition="{settings.publisherLogo}">
<f:alias map="{leftBrace: '{', rightBrace: '}'}">
<script type="application/ld+json">
{leftBrace}
"@context": "http://schema.org/",
"@type": "NewsArticle",
"author": "{newsMetaData.news.author}",
"publisher": {leftBrace}
"@type": "Organization",
"name": "{settings.publisher}",
"logo": {leftBrace}
"@type": "ImageObject",
"url": "{settings.publisherLogo}"
{rightBrace}
{rightBrace},
"image": "<f:uri.image absolute="TRUE" image="{newsMetaData.imageObject}" />",
"headline": "{newsMetaData.news.navTitle}",
"description": "{newsMetaData.news.description}",
"dateCreated": "<f:format.date format="Y-m-d">{newsMetaData.news.creationDate}</f:format.date>",
"datePublished": "<f:format.date format="Y-m-d">{newsMetaData.news.creationDate}</f:format.date>",
"dateModified": "<f:format.date format="Y-m-d">{newsMetaData.news.lastUpdated}</f:format.date>"
{rightBrace}
</script>
</f:alias>
</f:if>
</f:if>
<div class="intro-section">
<section class="dark-bg">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment