[TYPO3] Make homemade extension use external html template
S. Teuber
traveler_in_time at gmx.net
Fri Mar 17 13:37:40 CET 2006
Hi Brian,
> I have added this code to the class file in the listView function:
>
> $this->templateFileContent =
> $this->cObj->cObjGetSingle($lConf['altTemplateFile'],$lConf
['altTemplateFile']);
I think there is a dot missing in the second parameter. Try:
$this->cObj->cObjGetSingle($lConf['altTemplateFile'],$lConf
['altTemplateFile.']);
See the dot (5th charakter from the end of the line)?
This is due to the TypoScript "dot delimitered" syntax:
typoscriptobj = bla
typoscriptobj.prop1 = eek
is made into an PHP array like this:
$arr['typoscriptobj'] == 'bla';
$arr['typoscriptobj.']['prop1'] == 'eek';
The dot is important, so that the scalar value of "bla" does not get
replaced with the array ('prop1' => 'eek').
Sven
More information about the TYPO3-english
mailing list