Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use TYPO3 SEO APIs #45

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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