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
2059de7b
Commit
2059de7b
authored
6 years ago
by
Tim Wagner
Browse files
Options
Downloads
Patches
Plain Diff
[TASK][WIP] Add new SgNewsSchema file that can add metadata to header of news pages
parent
313e3ec0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!10
Add schema for news overview
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Configuration/TypoScript/Partials/SgNewsSchema/Setup.ts
+99
-0
99 additions, 0 deletions
Configuration/TypoScript/Partials/SgNewsSchema/Setup.ts
with
99 additions
and
0 deletions
Configuration/TypoScript/Partials/SgNewsSchema/Setup.ts
0 → 100644
+
99
−
0
View file @
2059de7b
#
@
todo
Add
conditions
[
globalVar
=
TSFE
:
page
|
author
=
*
]
#
&&
[
globalVar
=
{
$plugin
.
tx_sgnews
.
settings
.
publisher
}
>
0
]
&&
[
globalVar
=
{
$plugin
.
tx_sgnews
.
settings
.
publisherLogo
}
>
0
]
#
@
todo
See
if
this
can
replace
the
stuff
from
"
SingleView.html
"
lib
.
sgNews
.
sg_news_schema
=
COA
lib
.
sgNews
.
sg_news_schema
{
10
=
TEXT
10
{
typolink
.
parameter
.
field
=
uid
typolink
.
forceAbsoluteUrl
=
1
typolink
.
returnLast
=
url
htmlSpecialChars
=
1
wrap
=
"
mainEntityOfPage
"
:
{
"
@type
"
:
"
WebPage
"
,
"
@id
"
:
"
|
"
},
}
20
=
TEXT
20
{
field
=
subtitle
wrap
=
"
headline
"
:
"
|
"
,
}
30
=
FILES
30
{
references
{
table
=
pages
uid
.
data
=
page
:
uid
fieldName
=
tx_sgnews_teaser1_image
}
renderObj
=
TEXT
renderObj
{
typolink
{
parameter
.
stdWrap
{
cObject
=
IMG_RESOURCE
cObject
{
file
.
import
.
data
=
file
:
current
:
uid
file
.
treatIdAsReference
=
1
}
}
returnLast
=
url
forceAbsoluteUrl
=
1
}
wrap
=
"
image
"
:
[
"
|
"
],
}
}
40
=
TEXT
40
{
value
{
field
=
crdate
strftime
=
%
c
wrap
=
"
datePublished
"
:
"
|
"
,
}
}
50
=
TEXT
50
{
value
{
field
=
lastUpdated
strftime
=
%
c
wrap
=
"
dateModified
"
:
"
|
"
,
}
}
60
=
TEXT
60
{
field
=
author
wrap
=
"
author
"
:
{
"
@type
"
:
"
Person
"
,
"
name
"
:
"
|
"
},
}
70
=
COA
70
{
#
@
todo
only
implement
if
both
values
are
set
!
701
=
TEXT
701
{
value
=
{
$plugin
.
tx_sgnews
.
settings
.
publisher
}
wrap
=
"
publisher
"
:
{
"
@type
"
:
"
Organization
"
,
"
name
"
:
"
|
"
,
}
702
=
TEXT
702
{
value
=
{
$plugin
.
tx_sgnews
.
settings
.
publisherLogo
}
wrap
=
"
logo
"
:
{
"
@type
"
:
"
ImageObject
"
,
"
url
"
:
"
|
"
}},
}
}
80
=
TEXT
80
{
field
=
description
wrap
=
"
description
"
:
"
|
"
}
}
[
GLOBAL
]
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