Skip to content

Commit

Permalink
feat: use TYPO3 SEO APIs
Browse files Browse the repository at this point in the history
RENUXTTYPO-178
  • Loading branch information
dvdmlln committed Sep 25, 2024
1 parent 6a9bf6c commit 252cb17
Show file tree
Hide file tree
Showing 3 changed files with 321 additions and 402 deletions.
39 changes: 14 additions & 25 deletions Configuration/TypoScript/Page/Meta.typoscript
Original file line number Diff line number Diff line change
@@ -1,38 +1,27 @@
lib.meta {
fields {
ogImage = TEXT
ogImage {
dataProcessing {
10 {
processingConfiguration < lib.assetProcessingConfiguration
}
}
page {
// can be removed in future version of EXT:headless, see https://github.com/TYPO3-Headless/headless/releases/tag/v4.4.0
10 {
fields {
meta >
}
ogTitle {
stdWrap.ifEmpty.cObject {
field = seo_title
}

meta {
og:title = TEXT
og:title {
field = seo_title
stdWrap.ifEmpty.cObject = TEXT
stdWrap.ifEmpty.cObject {
field = title
}
}
}
twitterImage = TEXT
twitterImage {
dataProcessing {
10 {
processingConfiguration < lib.assetProcessingConfiguration
}
}
}
twitterTitle {
stdWrap.ifEmpty.cObject {
field = seo_title
twitter:title = TEXT
twitter:title {
field = seo_title
stdWrap.ifEmpty.cObject = TEXT
stdWrap.ifEmpty.cObject {
field = title
}
}
}
}
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"ichhabrecht/content-defender":"^3.4",
"php": "^8.2",
"typo3/cms-core": "^12.4",
"friendsoftypo3/headless": "^4.3.1"
"friendsoftypo3/headless": "^4.4"
},
"require-dev": {
"apache-solr-for-typo3/solr": "^12.0",
Expand Down
Loading

0 comments on commit 252cb17

Please sign in to comment.