Skip to content

Instantly share code, notes, and snippets.

@pixelbrackets
Last active October 8, 2020 08:51
Show Gist options
  • Save pixelbrackets/865778f36d73f09adfc58a9835ca5496 to your computer and use it in GitHub Desktop.
Save pixelbrackets/865778f36d73f09adfc58a9835ca5496 to your computer and use it in GitHub Desktop.
TypoScript Template Render Fix - Hotfix if some TYPO3 plugins render unwanted HTML and you need a way to replace this without changing the plugin
# page = PAGE
# page.10 = FLUIDTEMPLATE
# page.10 {
# # TYPO3 page template and all content rendered here, containing some unwanted markup
# }
### Template Render Fix
page.10 {
stdWrap.replacement {
### Replace legacy Values
10 {
search = Old Name
replace = New Name
}
### Force HTTP to HTTPS
20 {
search = http://example.com
replace = https://example.com
}
### Force CDN usage
30 {
search = "/fileadmin/
replace = "https://cdn.example.com/fileadmin/
}
}
}
@pixelbrackets
Copy link
Author

@pixelbrackets
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment