[Typo3-dev] Template Marker Bug

Chi Hoang chibo at gmx.de
Sun May 1 01:42:14 CEST 2005


Hello list,

there is an error in the template engine. In the example the marker 
###EVENTNAME### get replaced but some rest of the marker are still in 
$content (<h4>blabla##EEVENTNAME###</h4> for example). This happens only 
if the marker is following directly the next line of the template marker 
###GUESTLIST_PDF###.

Greets,

Chi

Example:

// Get the parts out of the template
$template = array();
$template["total"] = 
$this->cObj->getSubpart($this->templateCode,"###GUESTLIST_PDF###");

$subpartArray = array();
$subpartArray["###EVENTNAME###"] = "blabla"];

$content = 
$this->cObj->substituteMarkerArrayCached($template["total"],array(), 
$subpartArray, array());

Template:

<!-- ###GUESTLIST_PDF### -->
     <h4>###EVENTNAME###</h4>
<!-- ###GUESTLIST_PDF### -->




More information about the TYPO3-dev mailing list