[TYPO3-dev] templates

flower flower maciek.zieba at gmail.com
Sun Dec 17 12:31:29 CET 2006


I have problem with custom template in my extension.
Please look at my template example and php code.

<!-- ###KOSZYK### begin -->
<div>###MARKER###</div><p>###MARKER###</p>
<!-- ###KOSZYK### end -->

function example($content,$conf)
{
$this->templateCode =
$this->cObj->fileResource($this->conf['templateMiniKoszyk']);
$template['koszyk'] =
$this->cObj->getSubpart($this->templateCode,'###KOSZYK###');
$stat = tx_mzmuehsam_koszyk_pi1::Statystyki();
$markerArray2['###MARKER###'] = $stat['ilosc'];
$page.=$this->cObj->substituteMarkerArrayCached($template['koszyk'],
$markerArray2);

return $page;
}

Only first instances od ###MARKER### is substituted with content and
second is avoided?
Can you tell what I did wrong?


Maciek Zięba


More information about the TYPO3-dev mailing list