[TYPO3-german] Extension Entwicklung Subpart ignorieren

Stefan Collon stefancollon at yahoo.de
Wed May 12 19:07:45 CEST 2010






________________________________
Von: Christian Wolff <chris at connye.com>
An: typo3-german at lists.typo3.org
Gesendet: Mittwoch, den 12. Mai 2010, 15:23:31 Uhr
Betreff: Re: [TYPO3-german] Extension Entwicklung Subpart ignorieren

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 12.05.2010 13:59, schrieb Stefan Collon:
> Hallo Oliver. 
> Wow...Klasse! Das sieht richtig gut aus und ich werde mich mal dranmachen das zu integrieren.
> Komisch trotzdem, dass es da keine eingebaute Typo3 Funktion gibt,aber zum Glück gibt es ja Dich ;)
> 
> Danke an alle für die Hilfe!

Hi ihr wist schon das tslib_cObj funktionen dafür bereit stellt oder?
tslib_cObj ist normalerweis bei plugins bereits $this->cObj verfügbar.

die funktionen:
getSubpart  ($content, $marker)
substituteSubpart ($content, $marker, $subpartContent, $recursive=1)
substituteMarker ($content, $marker, $markContent)

(es gibt auch noch einige funktionen die ein marker array verwenden)

hat. damit ist es eigendlich ganz einfach oder verstehe ich das problem
nicht?

$templ= $this-cObj->fileResource('mytemplatefile.html');


if($supbpartNotNeedet){
  $templ=$this->cObject->substituteSubpart($templ,###mark###,'',true);
}

gruss chris


- -- 
Christian Wolff // Berlin
http://www.connye.com

some projects:
http://richtermediagroup.com | http://titanic.de |
http://fairplay-homepage.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)

iEYEARECAAYFAkvqq9IACgkQIcCaXPh/JHFJtgCfav73aVtmnY5ViA+K1KMO0x7i
B6QAoJo0hXmT6tHeuvahADMFLrk5+0am
=zU8d
-----END PGP SIGNATURE-----
_______________________________________________
TYPO3-german mailing list
TYPO3-german at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german
###

Hallo chris,
die Frage bei 
if($supbpartNotNeedet){
  
$templ=$this->cObject->substituteSubpart($templ,###mark###,'',true);
}
ist, ob der Subpart dann komplett weg ist, oder wieder "aktiviert" werden kann, weil ich ja in einem Loop durch meine Einrichtungen gehe und den Subpart je nach Bedarf (if()...) anzeigen oder nicht anzeigen will.

Viele Grüße,
Stefan




More information about the TYPO3-german mailing list