[TYPO3-core] RFC: Hook request for t3lib_befunc + t3lib_userauthgroup

Bernhard Kraft kraftb at kraftb.at
Tue Nov 27 13:45:03 CET 2007


Bernhard Kraft wrote:

> We discussed this via Skype and I created a patch containing the
> "best of both worlds" :) ...
> 
> see attached diff or last file on:
> http://bugs.typo3.org/view.php?id=5613
> 
> 

Any news on this one ?

I think TS-Config conditons are a quite often asked requirement ...

(7 votes on "extensions for the core")

Theres already one +1 from Steffen. Oliver: Would you have time to check my patch ?




Documentation changes:
(how shall we handle those ??)

http://typo3.org/documentation/document-library/references/doc_core_tsconfig/4.1.0/view/1/1/#id3617865

--------------------- before ----------------

Syntax

The syntax is as usual TypoScript, only difference is that you cannot use any Constants or Conditions.

--------------------- after ----------------

The syntax is as usual TypoScript, only difference is that you cannot use any Constants. If you like
to use Conditons you have to enable this feature in the Install Tool (Key: [BE][TSconfigConditions]).


TS-Config conditions
====================

Most of the conditions work in a similar way than FE TypoScript conditions:

http://typo3.org/documentation/document-library/references/doc_core_tsref/4.1.0/view/4/1/

Especially conditions which check browser and operating system of the user behave exactly as the
equivalents for TypoScript. The only difference is that operations which take the current page-id
into account are a little bit different - for cases where the rootline is checked you should note
that the rootline of TypoScript goes up until a page with the "root-page" flag is encountered.
For the BE the rootline is always the complete rootline up to the topmost page (the page with
the world icon) which is "Level 0" of the page-tree.

"usergroup" - This checks the BE-Usergroup of the actually logged in BE user.

"loginUser" - This checks the uid of the actually logged in BE user.

"treeLevel" - This checks the level of the current page in the rootline. Note that for TypoScript
the rootLine stops at pages which have the "root-page" flag set. In the BE "Level 0" is always the
topmost page.

"PIDinRootline" - checks if the given page is somewhere in the current rootline. In this case also
the rootline up to the topmost page (page with uid 0) is taken into account.

"PIDupinRootline" - checks if the given page is somewhere up in the current rootline (current page is
excluded from check). Rootline goes up to topmost page (page uid 0).

--------------------- end ----------------



greets,
Bernhard


More information about the TYPO3-team-core mailing list