[FEATURE] Re-implement old PIDupinRootline condition in TypoScript
The TypoScript condition matcher is now able to match pages up in the root line as the old "PIDupinRootline" behavior was. By using the new "tree.rootLineParentIds" expression, one can check if a given page is part of the root line but not currently on the requested page. Example: [30 in tree.rootLineParentIds] ... [end] This is basically the same as: [30 in tree.rootLineIds && page["uid"] != 30] ... [end] Resolves: #88962 Releases: master Change-Id: I15311b39db5d03ad2541377426898c228c86ae53 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/61500 Tested-by:TYPO3com <noreply@typo3.com> Tested-by:
Daniel Goerz <daniel.goerz@posteo.de> Tested-by:
Susanne Moog <look@susi.dev> Reviewed-by:
Daniel Goerz <daniel.goerz@posteo.de> Reviewed-by:
Susanne Moog <look@susi.dev>
Showing
- typo3/sysext/backend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php 1 addition, 0 deletions...uration/TypoScript/ConditionMatching/ConditionMatcher.php
- typo3/sysext/backend/Tests/Functional/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php 23 additions, 12 deletions...ion/TypoScript/ConditionMatching/ConditionMatcherTest.php
- typo3/sysext/core/Documentation/Changelog/master/Feature-88962-Re-implementOldPIDupinRootlineTypoScriptCondition.rst 41 additions, 0 deletions...962-Re-implementOldPIDupinRootlineTypoScriptCondition.rst
- typo3/sysext/frontend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php 1 addition, 0 deletions...uration/TypoScript/ConditionMatching/ConditionMatcher.php
- typo3/sysext/frontend/Tests/Functional/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php 14 additions, 4 deletions...ion/TypoScript/ConditionMatching/ConditionMatcherTest.php
Please register or sign in to comment