Hi Leute,
ich habe dieses Template und möchte die Marker ersetzten:
<!-- ###MAINLISTE### -->
<form action="index.php" method="post">
<input type="hidden" name="send" value="###SENDVALUE###" />
<!-- ###REPEAT### -->
<div>###NUMBER###</div>
<!-- ###REPEAT### -->
<input type="submit" value="" />
</form>
<!-- ###MAINLISTE### -->
$templateFile = $this->cObj->fileResource('EXT:fx_testextension/res/template.tmpl');
$template = $this->cObj->getSubpart($templateFile, '###MAINLISTE###');
$templateRepeat = $this->cObj->getSubpart($template, '###REPEAT###');
$content = $this->cObj->substituteMarker($template, '###SENDVALUE###', '1');
$repeat = '';
$marker = array();
// For scheife die von 0-10 zählt ( warum kann man die hier nicht eintragen??)
$marker['###NUMBER###'] = $i;
$repeat .= $this->cObj->substituteMarkerArrayCached($templateRepeat, $marker);
//For ende
$content .= $this->cObj->substituteSubpart($template, '###REPEAT###', $repeat);
return $content;
Es kommt sowas bei raus, ist natürlich falsch mit den zwei Form Elementen:
<form action="index.php" method="post">
<input type="hidden" name="send" value="1" />
<div>###NUMBER###</div>
<input type="submit" value="" />
</form>
<form action="index.php" method="post">
<input type="hidden" name="send" value="###SENDVALUE###" />
<div>0</div>
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
<div>6</div>
<div>7</div>
<div>8</div>
<div>9</div>
<input type="submit" value="" />
</form>
Wie geht es richtig , ich kriege es einfach nicht hin.