[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TYPO3-dev] TypoScript TSFE data array and Fluidtemplate



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?
> 


_______________________________________________
TYPO3-dev mailing list
[email protected]
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev