Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sg_news
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TYPO3
sg_news
Commits
c8ffdc3e
Verified
Commit
c8ffdc3e
authored
2 years ago
by
Kevin Ditscheid
Browse files
Options
Downloads
Patches
Plain Diff
[BUGFIX] Remove access curly braces from the custom jsonld section
parent
2e59b757
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Resources/Private/Partials/SingleViewSchema.html
+37
-37
37 additions, 37 deletions
Resources/Private/Partials/SingleViewSchema.html
with
37 additions
and
37 deletions
Resources/Private/Partials/SingleViewSchema.html
+
37
−
37
View file @
c8ffdc3e
<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>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment