Skip to content
Snippets Groups Projects
Commit ddb02ef4 authored by Christian Eßl's avatar Christian Eßl Committed by Richard Haeser
Browse files

[DOCS][BUGFIX] Fix docs on how to set a fallback og:image

The current solution for setting a fallback og:image/twitter:image in
the docs of ext:seo would generate relative urls, which is not desired
for these kind of resources. Improve the docs with a solution, that
enforces absolute urls.

Resolves: #90830
Releases: master
Change-Id: Ibc254f2f157dfac0da2d748b475da1617ecee1c1
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64070


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: Daniel Siepmann's avatarDaniel Siepmann <coding@daniel-siepmann.de>
Tested-by: default avatarRichard Haeser <richard@maxserv.com>
Reviewed-by: Daniel Siepmann's avatarDaniel Siepmann <coding@daniel-siepmann.de>
Reviewed-by: default avatarRichard Haeser <richard@maxserv.com>
parent 98b7748d
Branches
Tags
No related merge requests found
......@@ -156,13 +156,23 @@ If you want to have a fallback og:image or twitter:image, you can use this littl
page {
meta {
og:image.stdWrap.cObject = IMG_RESOURCE
og:image.stdWrap.cObject = TEXT
og:image.stdWrap.cObject {
file = EXT:your_extension/Resources/Public/Backend/OgImage.svg
stdWrap.typolink {
parameter.stdWrap.cObject = IMG_RESOURCE
parameter.stdWrap.cObject.file = EXT:your_extension/Resources/Public/Backend/OgImage.svg
returnLast = url
forceAbsoluteUrl = 1
}
}
twitter:image.stdWrap.cObject = IMG_RESOURCE
twitter:image.stdWrap.cObject = TEXT
twitter:image.stdWrap.cObject {
file = EXT:your_extension/Resources/Public/Backend/TwitterCardImage.svg
stdWrap.typolink {
parameter.stdWrap.cObject = IMG_RESOURCE
parameter.stdWrap.cObject.file = EXT:your_extension/Resources/Public/Backend/TwitterCardImage.svg
returnLast = url
forceAbsoluteUrl = 1
}
}
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment