Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
[TASK] Add further hint on backend/frontend tree.level, fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
garvinhicking committed Nov 18, 2024
1 parent e11eece commit b7033fb
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions Documentation/UsingSetting/Conditions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,17 @@ Example: Condition applies on a page on root level
// Your settings go here
[END]
.. hint::
.. hint::

In older versions before TYPO3 v10, this setting was available as
`treeLevel` variable.
That variable started the root level at value `0`, and now it starts at `1`.
Keep this in mind when migrating old conditions.
In older versions before TYPO3 v10, this setting was available as
`treeLevel` variable.
That variable started the root level at value `0`, and now it starts at `1`.
Keep this in mind when migrating old conditions.

Unlike the frontend TypoScript condition `tree.level`, the backend tree level
is not affected by `pages.is_siteroot`. This means, for nested sites it cannot
be used to match "site roots" or in general any n-th levels of page tree depths.
It's the *absolute depth* of the entire page tree, starting with `1`.

.. index:: Conditions; tree.pagelayout
.. _condition-tree-pagelayout:
Expand Down

0 comments on commit b7033fb

Please sign in to comment.