[TYPO3-core] RFC 15090: Bug: login with a BE User somewhere else on the page tree

Jigal van Hemert jigal at xs4all.nl
Thu Jul 22 10:39:21 CEST 2010


Xavier Perseguers wrote:
> - "-1" should not be proposed as the documentation says:

In the Core API it says for rootLevel:
---------------------
rootLevel

[0, 1, -1]

Determines where a record may exist in the page tree. There are three 
options depending on the value:

    1. 0 (false): Can only exist in the page tree. Records from this 
table must belong to a page (have a positive "pid" field value). Thus 
records cannot be created in the root of the page tree (where "admin" 
users are the only ones allowed to create records anyways).
    2. 1 (true): Can only exist in the root.Records must have a 
"pid"-field value equal to zero. The consequence is that only admin can 
edit this record.
    3. -1: Can exist in both page tree and root.Records can belong 
either to a page (positive "pid" field value) or exist in the root of 
the page tree (where the "pid" field value will be 0 (zero)) Notice: 
that the -1 value will still select foreign_table records for selectox 
boxes only from root (pid=0)

Notice: The setting for "rootLevel" is ignored for records in the 
"pages" table (they are hardcoded to be allowed anywhere, equal to a 
"-1" setting of rootLevel)
--------------------

Although it mentions TRUE and FALSE the -1 value is already documented 
with a meaning.

[1] 
http://typo3.org/documentation/document-library/core-documentation/doc_core_api/4.3.0/view/4/2/#id2517078


-- 
Jigal van Hemert
skype:jigal.van.hemert
msn: jigal at xs4all.nl
http://twitter.com/jigalvh


More information about the TYPO3-team-core mailing list