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 { ...@@ -99,10 +99,10 @@ plugin.tx_sgnews {
sortBy = date sortBy = date
# The publisher value for the structured data implementation (see single view template) # 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) # The logo value for the structured data implementation (see single view template)
publisherLogo = https://cdn.sgalinski.de/fileadmin/media/news/logoWithoutText.png publisherLogo =
} }
features { features {
......
...@@ -4,29 +4,35 @@ ...@@ -4,29 +4,35 @@
{namespace rx=Reelworx\RxShariff\ViewHelper} {namespace rx=Reelworx\RxShariff\ViewHelper}
<f:section name="main"> <f:section name="main">
<f:alias map="{leftBrace: '{', rightBrace: '}'}"> <f:if condition="{settings.publisher}">
<script type="application/ld+json">
{leftBrace} <f:if condition="{settings.publisherLogo}">
"@context": "http://schema.org/", <f:alias map="{leftBrace: '{', rightBrace: '}'}">
"@type": "NewsArticle", <script type="application/ld+json">
"author": "{newsMetaData.news.author}", {leftBrace}
"publisher": {leftBrace} "@context": "http://schema.org/",
"@type": "Organization", "@type": "NewsArticle",
"name": "{settings.publisher}", "author": "{newsMetaData.news.author}",
"logo": {leftBrace} "publisher": {leftBrace}
"@type": "ImageObject", "@type": "Organization",
"url": "{settings.publisherLogo}" "name": "{settings.publisher}",
{rightBrace} "logo": {leftBrace}
{rightBrace}, "@type": "ImageObject",
"image": "<f:uri.image absolute="TRUE" image="{newsMetaData.imageObject}" />", "url": "{settings.publisherLogo}"
"headline": "{newsMetaData.news.navTitle}", {rightBrace}
"description": "{newsMetaData.news.description}", {rightBrace},
"dateCreated": "<f:format.date format="Y-m-d">{newsMetaData.news.creationDate}</f:format.date>", "image": "<f:uri.image absolute="TRUE" image="{newsMetaData.imageObject}" />",
"datePublished": "<f:format.date format="Y-m-d">{newsMetaData.news.creationDate}</f:format.date>", "headline": "{newsMetaData.news.navTitle}",
"dateModified": "<f:format.date format="Y-m-d">{newsMetaData.news.lastUpdated}</f:format.date>" "description": "{newsMetaData.news.description}",
{rightBrace} "dateCreated": "<f:format.date format="Y-m-d">{newsMetaData.news.creationDate}</f:format.date>",
</script> "datePublished": "<f:format.date format="Y-m-d">{newsMetaData.news.creationDate}</f:format.date>",
</f:alias> "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"> <div class="intro-section">
<section class="dark-bg"> <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