[TYPO3-dev] TypoScript TSFE data array and Fluidtemplate

Kay Strobach typo3 at kay-strobach.de
Tue Dec 13 11:26:05 CET 2011


Hi Steffen,

as variables are standard TYPOScript - yes it's possible see below ;)

Regards
Kay


> page.10 = FLUIDTEMPLATE
> page.10 {
>    file = fileadmin/fluid-template/fe_user.html
>    variables {

++     fe_user = TEXT
++     fe_user.data = {TSFE:fe_user|user}
--     insertData = 1
>    }
> }

Am Donnerstag, den 08.12.2011, 17:17 +0100 schrieb Steffen Müller:
> Hi.
> 
> is there a generic way to map data arrays from TSFE with FLUIDTEMPLATE 
> variables?
> 
> My goal is to map $GLOBALS["TSFE"]->fe_user->user to a single variable 
> in Fluidtemplate. The data is available via getData in TypoScript using 
> {TSFE:fe_user|user}. I would like to avoid to name and map each field 
> separately.
> 
> Example:
> 
> page.10 = FLUIDTEMPLATE
> page.10 {
>    file = fileadmin/fluid-template/fe_user.html
>    variables {
>      fe_user = {TSFE:fe_user|user}
>      insertData = 1
>    }
> }
> 
> Fluid:
> 
> {fe_user.username}
> {fe_user.first_name}
> ...
> 
> Is this possible at all with TypoSript?
> 





More information about the TYPO3-dev mailing list