[FEATURE] Extend stdWrap.if feature
This change extends the TypoScript function "if." (checkIf) to also allow * "contains" * "startsWith" * "endsWith" Examples: 10 = TEXT 10.value = Welcome to our website! 10.if.value.data = page:title 10.if.startsWith = Home 10 = TEXT 10.value = This is an article from Benji 10.if.value.data = page:author 10.if.endsWith = Kott 10 = TEXT 10.value = Watch Out for Links in this text 10.if.value.data = field:bodytext 10.if.contains = https:// In addition, some internal variables in PHP are renamed to make the code more readable. Resolves: #99194 Releases: main Change-Id: Ib28b9b1c83f247abdf5a2ec39c0f8f7eda0359d3 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/76822 Reviewed-by:Nikita Hovratov <nikita.h@live.de> Reviewed-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Stefan Bürk <stefan@buerk.tech> Tested-by:
Stefan Bürk <stefan@buerk.tech> Tested-by:
Benni Mack <benni@typo3.org> Tested-by:
core-ci <typo3@b13.com> Tested-by:
Nikita Hovratov <nikita.h@live.de>
Showing
- Build/phpstan/phpstan-baseline.neon 1 addition, 1 deletionBuild/phpstan/phpstan-baseline.neon
- typo3/sysext/core/Documentation/Changelog/12.1/Feature-99194-SupportForVariousStringComparisonsForStdWrapifTypoScriptFunction.rst 69 additions, 0 deletions...ariousStringComparisonsForStdWrapifTypoScriptFunction.rst
- typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php 32 additions, 14 deletions.../frontend/Classes/ContentObject/ContentObjectRenderer.php
- typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php 12 additions, 0 deletions...nd/Tests/Unit/ContentObject/ContentObjectRendererTest.php
- typo3/sysext/t3editor/Resources/Private/tsref.xml 12 additions, 0 deletionstypo3/sysext/t3editor/Resources/Private/tsref.xml
Loading
Please register or sign in to comment