[TYPO3-templavoila] Using TV for Extensions without the use of multiple sheets in the DS

Nils Meyer meyer at hauptsache.net
Wed Aug 16 10:10:14 CEST 2006


Hi Nils,

Nils Meyer wrote:
> So I suppose for my example:
> <T3DataStructure><ROOT><el><field_name>
> would become:
> $this->TA['sub']['field_name']
>
> However, using
> $out = $this->TMPLobj->mergeDataArrayToTemplateArray($this->TA['sub'], 
> array('field_name' => 'Test!'));
>
> returns an empty String. What am I doing wrong and where could I read to 
> get more information?
After reading the source of mergeDataArrayToTemplateArray() i got 
enlighted. Simply strip the ['sub'] and it works:

$out = $this->TMPLobj->mergeDataArrayToTemplateArray($this->TA, 
array('field_name' => 'Test!'));


Sometimes it is simply to easy.

have a nice day
Nils



More information about the TYPO3-project-templavoila mailing list