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

Susanne Moog typo3 at susannemoog.de
Mon Jan 4 18:49:12 CET 2010


Hi,

Am 08.12.2009 12:23, schrieb Oliver Hader:
> This is an SVN patch request.
> 
> Type: Bugfix
> 
> 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 by reading and testing.

Tested:
- run unit tests
- added the following page TS config and looked at the behavior before
and after patching. Only after patching is the TS taken into account for
new pages:
[treeLevel = 2]
TCEFORM.pages.layout.altLabels.0 = 2
TCEFORM.pages.layout.altLabels.1 = 1
TCEFORM.pages.layout.altLabels.2 = 4
TCEFORM.pages.layout.altLabels.3 = Home
[global]


Best regards,

Susanne


More information about the TYPO3-team-core mailing list