[TYPO3-english] Using TSFE: fe_user|user|username as part of path in plugin.tx_airfilemanager_pi1.root

Dmitry Dulepov dmitry at typo3.org
Tue Jul 20 15:23:27 CEST 2010


Hi!

Brian Hauge Hansen wrote:
> I want to use TSFE: fe_user|user|username as part of the path of "plugin.tx_airfilemanager_pi1.root". I have tried the following:
> 
> lib.username = COA_INT
> lib.username (
>   10 = TEXT
>   10.data = TSFE: fe_user | user | username
> )
> 
> plugin.tx_airfilemanager_pi1.root < lib.username
> 
> But this leads to that "plugin.tx_airfilemanager_pi1.root" being equal to COA_INT and not the username of the user who is logged in.

That's right. Here is the result that you get:

plugin.tx_airfilemanager_pi1.root = COA_INT
plugin.tx_airfilemanager_pi1.root.10 = TEXT
plugin.tx_airfilemanager_pi1.root.10.data = TSFE: fe_user | user | username


TypoScript is not a programming language. "<" operator copies the object,
not the result of execution of this object.

You can see that in the TypoScript Object Browser in Web>Template.

It is up to plugion authors to decide how they process properties. Have a
look at the manual (if there is one).

-- 
Dmitry Dulepov
TYPO3 core&security teams member
Twitter: http://twitter.com/dmitryd
Read more @ http://dmitry-dulepov.com/


More information about the TYPO3-english mailing list