From c8ffdc3e5ac1a0636503c19cc43e4071cb399796 Mon Sep 17 00:00:00 2001 From: Kevin Ditscheid <kevin.ditscheid@sgalinski.de> Date: Wed, 27 Jul 2022 15:44:05 +0200 Subject: [PATCH] [BUGFIX] Remove access curly braces from the custom jsonld section --- .../Private/Partials/SingleViewSchema.html | 74 +++++++++---------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/Resources/Private/Partials/SingleViewSchema.html b/Resources/Private/Partials/SingleViewSchema.html index 5540038..3d586ee 100644 --- a/Resources/Private/Partials/SingleViewSchema.html +++ b/Resources/Private/Partials/SingleViewSchema.html @@ -1,40 +1,40 @@ -<f:alias map="{leftBrace: '{', rightBrace: '}'}"> - <script type="application/ld+json"> - {leftBrace} - <f:if condition="{newsMetaData.customSchemaJson}"> - <f:then> - <f:format.raw>{newsMetaData.customSchemaJson}</f:format.raw> - </f:then> - <f:else> - <f:render section="default" arguments="{_all}"/> - </f:else> - </f:if> - {rightBrace} - </script> -</f:alias> +<script type="application/ld+json"> + <f:if condition="{newsMetaData.customSchemaJson}"> + <f:then> + <f:format.raw>{newsMetaData.customSchemaJson}</f:format.raw> + </f:then> + <f:else> + <f:render section="default" arguments="{_all}"/> + </f:else> + </f:if> +</script> <f:section name="default"> -"@context": "http://schema.org/", -"@type": "NewsArticle", -"mainEntityOfPage": {leftBrace} - "@type": "WebPage", - "@id": "<f:uri.page absolute="TRUE"/>" -{rightBrace}, -"author": "{newsMetaData.news.author}", -"publisher": {leftBrace} - "@type": "Organization"{f:if(condition: settings.publisher, then:',')} - <f:if condition="{settings.publisher}">"name": "{settings.publisher}"{f:if(condition: settings.publisherLogo, then:',')}</f:if> - <f:if condition="{settings.publisherLogo}">"logo": {leftBrace} - "@type": "ImageObject", - "url": "{settings.publisherLogo}" - {rightBrace}</f:if> -{rightBrace}, -<f:if condition="{newsMetaData.imageObject}"> -"image": "<f:uri.image absolute="TRUE" image="{newsMetaData.imageObject}" />", -</f:if> -"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>" + <f:alias map="{leftBrace: '{', rightBrace: '}'}"> + {leftBrace} + "@context": "http://schema.org/", + "@type": "NewsArticle", + "mainEntityOfPage": {leftBrace} + "@type": "WebPage", + "@id": "<f:uri.page absolute="TRUE"/>" + {rightBrace}, + "author": "{newsMetaData.news.author}", + "publisher": {leftBrace} + "@type": "Organization"{f:if(condition: settings.publisher, then:',')} + <f:if condition="{settings.publisher}">"name": "{settings.publisher}"{f:if(condition: settings.publisherLogo, then:',')}</f:if> + <f:if condition="{settings.publisherLogo}">"logo": {leftBrace} + "@type": "ImageObject", + "url": "{settings.publisherLogo}" + {rightBrace}</f:if> + {rightBrace}, + <f:if condition="{newsMetaData.imageObject}"> + "image": "<f:uri.image absolute="TRUE" image="{newsMetaData.imageObject}" />", + </f:if> + "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} + </f:alias> </f:section> -- GitLab