Skip to content
Snippets Groups Projects
Verified Commit c8ffdc3e authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[BUGFIX] Remove access curly braces from the custom jsonld section

parent 2e59b757
No related branches found
No related tags found
No related merge requests found
<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>
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