[TYPO3-dev] TypoScript TSFE data array and Fluidtemplate

Helmut Hummel helmut.hummel at typo3.org
Wed Dec 14 12:52:32 CET 2011


Hi Steffen,

Steffen Müller wrote:
>      fe_user = TEXT
>      fe_user.data = TSFE:fe_user|user

This will not work because auf the following check in 
tslib_content::getGlobal()

if (!is_scalar($value)) {
   $value = '';
}

This means that if the resulting value is an array that value will be 
set to an empty string.

But you could create a small extension implementing this hook:

$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_content.php']['getData']

so that the following could work:

fe_user = TEXT
fe_user.data = globalArray:TSFE|fe_user|user

(untested)

Kind regards,
Helmut

-- 
Helmut Hummel
TYPO3 Security Team Leader, TYPO3 v4 Core Team Member

TYPO3 .... inspiring people to share!
Get involved: typo3.org



More information about the TYPO3-dev mailing list