[TYPO3-german] Template in Extension auslagern

Konrad Schiertz konrad.schiertz at schindlerparent.de
Fri May 25 13:59:00 CEST 2007


1. die zwei returns sind schon mal eins zuviel...
2. nimm mal den pfad relativ zu deinem root
3. sind denn die marker1 und marker2 in deinem template vorhanden?

-----Ursprüngliche Nachricht-----
Von: typo3-german-bounces at lists.netfielders.de
[mailto:typo3-german-bounces at lists.netfielders.de]Im Auftrag von
Christian Hensel
Gesendet: Freitag, 25. Mai 2007 13:52
An: typo3-german at lists.netfielders.de
Betreff: Re: [TYPO3-german] Template in Extension auslagern


Hallo Joey,
ja ist drin. Wobei ich mir auch nicht ganz sicher bin, ob das
return $content;
nicht auch gelöscht werden könnte, da ja schliesslich über return 
$this->pi_wrapInBaseClass($content); die Ausgabe geregelt wird.

gruss
Christian:

Aktueller Code:
  $this->templateCode = 
$this->cObj->fileResource('/confixxrootdirectory/web7/html/main/templates/wiseev_detailansicht.htm');

  # Get the parts out of the template
  $template['total'] = 
$this->cObj->getSubpart($this->templateCode,'###TEMPLATE###');

  # create the content by replacing the marker in the template
  $markerArray['###MARKER1###'] = 'name1';
  $markerArray['###MARKER2###'] = 'marker2';

  $content .= 
$this->cObj->substituteMarkerArrayCached($template['total'],$markerArray);
  return $content;

  return $this->pi_wrapInBaseClass($content); 






More information about the TYPO3-german mailing list