Hi Chris,

vielen Dank schon mal vorab.

Am 24.01.2011 um 16:00 schrieb Christian Wolff:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hallo Tom,
> hier mal ein bischen beispiel ts / php code.
> der dir hoffentlich deine fragen beantwortet.
> 
> TS:
> includeLibs = fileadmin/user_domains.php
> temp.domains = USER_INT
> temp.domains {
>       userFunc =  user_domains->main
>       MyOption = 13
>       MySubObtion.Opt = bla
> }
> 
> page.10 < temp.domains
> 
> 
> class user_domains {
>  function main( $content,$conf){
>    /* $conf beinhaltet das Configurations array
>       $content ist ein leerer string und sollte mit
>       inhalt gefüllt zurück gegeben werden
>    */
>    $content .= '<br /> Meine ausgabe:';
>    $content .= '<br /> MyOption: $conf['MyOption '];
>    $content .= '<br /> MySubOption: $conf['MyOption.']['MySubOption'];
>    /* es ist immer praktisch sich ausgeben zu lassen was man
>       überhaupt rein bnekommt einfach die debug zeile
>       auskommentieren */
>    // t3lib_div::debug($conf);
>    return $content;
>       
>  }
> }
> 

bis hier hin habe ich es soweit verstanden, denke ich :-)

> 
> beachte das das ein User Object nur die configuration für unter objecte
> bekommt noch nicht deren output! falls du also cObject erzeugen willst
> wie z.b das CONTENT object hinter styles.content.get must du das selbst
> Initiieren. mit tslib_cObj->cObjGetSingle($name,$conf);

bzzzzzzzt* tilt
:))

Wo würde ich das machen, auch in der main?
Ich werde jetzt auf jeden Fall erstmal mit Deinen Beispielcode(s) weiter 
rumprobieren.


> 
> auch ist zu beachten das die SubConfigurations punkte im array
> schlüsseln einen "punkt" am ende haben.
> 
> gruss chris

gruss
Tom
_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

Antwort per Email an