Ja, ich habe die Forumsuche benutzt und habe dadurch auch eine erste Starthilfe bekommen:
#43289
Aber nun habe ich ein paar Fragen:
1. Ich habe nicht verstanden wozu man überhaupt dieses
getSubpart
benötigt
2. substituteMarkerArrayCached ersetzt bei mir immer nur diesen Marker
$markerArray['###LABEL_FIRST###'] = $this->pi_getLL('label_first');
, aber nicht die anderen
Hier zur Verdeutlich mein Script im groben:
<strong>###LABEL_FIRST###</strong><br />
###FROM_OPEN###
###CKECKBOX###
<hr />
###FROM_CLOSE###
Also nur Label_First wird ersetzt
und
function main($content,$conf) {
$this->conf=$conf;
$this->pi_setPiVarDefaults();
$this->pi_loadLL();
$this->tmpl = $this->cObj->fileResource($conf["templateFile"]);
#$template['total'] = $this->cObj->getSubpart($this->tmpl,'###MYTEMPLATE###');
$markerArray['###LABEL_FIRST###'] = $this->pi_getLL('label_first');
markerArray['###FORM_OPEN###'] = "<form action="".$this-">pi_getPageLink($GLOBALS['TSFE']->id)."' method='POST' name='data'>";
$markerArray['###CHECKBOX###'] = '<input type="checkbox" name="activate" value="true" checked="" onclick="my_check();" />';
$markerArray['###FORM_CLOSE###'] = '</form>';
$content = $this->cObj->substituteMarkerArrayCached($this->tmpl,$markerArray, array(), array());
return $this->pi_wrapInBaseClass($content);
}