[TYPO3-core] RFC: Bug #12977: treeLevel in TSconfig conditions should consider the creation of new pages

Christian Kuhn lolli at schwarzbu.ch
Sat Jan 9 14:19:02 CET 2010


Hey,

Oliver Hader wrote:
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=12977
> 
> Branches: TYPO3_4-3, Trunk
> 
> Problem:
> The TSconfig condition [treeLevel = 2] counts the level of nestification
> in the pagetree. However, in the backend new pages could be created and
> the mentioned condition should consider that situation as well.
> PIDupinRootline behaves similar in the backend.
> 
> Solution:
> Increment the tree level calculated out of the rootline by one if a new
> page is being edited (TCEforms) or persited (TCEmain).
> 
> Notes:
> Two new test cases are added to the t3lib_matchCondition_backend test
> suite for this behaviour.


+1 on reading and testing.

Thanks
Christian


More information about the TYPO3-team-core mailing list