Vielen Dank!
Damit komme ich jetzt gut weiter :-)

Am 25.01.2011 um 13:22 schrieb Christian Wolff:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi Tom Die Antwort ist ganz einfach:
> $content = $cObj->cObjGetSingle($conf['MyContent'],$conf['MyContent.']);
> 
> das cObject gibt auch einfach seinen inhalt zurück. (in sofernt
> unterscheidet sich dein USER object quasie nicht von Allen anderen
> cObjecten.
> 
> sie nutzen alle das gleiche "interface"
> function($content,$conf){
>       return $content;
> }
> 
> selbst die postUserFunc nutzt das geleiche interface. (in dem fall ist
> $content dann mal nicht leer)
> 
> gruss chis
> 
> 
> Am 24.01.2011 18:02, schrieb Tom Arnold:
>> Soo,
>> 
>> ich bin immerhin so weit gekommen,
>> dass ich im debug meines PHP snippets sehe, dass das selbst initierte cObj 
>> den einen content-record der seite wohl erkennt:
>> #---------------------------------------------#
>> #TS:
>> temp.versions {
>>  userFunc = user_t3version->main #
>>  MyContent < style.content.get
>> }
>> page.10 < temp.versions
>> #---------------------------------------------#
>> #PHP:
>> function main($content,$conf){
>>      $cObj = new tslib_cObj();
>>      $cObj->cObjGetSingle($conf['MyContent'],$conf['MyContent.']);
>>      t3lib_div::debug($cObj);
>> ...
>> }
>> #---------------------------------------------#
>> #Ausgabe debug $conf:
>> userFunc user_t3version->main
>> MyContent CONTENT
>> MyContent. 
>>      table tt_content
>>      select.
>>              orderBy sorting
>>              where colPos=0
>>              languageField sys_language_uid
>> #---------------------------------------------#
>> #Ausgabe debug cObj:
>> ...
>>      [currentValKey] => currentValue_kidjls9dksoje
>>      [currentRecord] => 
>>      [currentRecordTotal] => 1
>>      [currentRecordNumber] => 1
>>      [parentRecordNumber] => 0
>> ...
>> #---------------------------------------------#
>> 
>> Im Debug sehe ich, dass da zwar alles Mögliche wie image quality und 
>> orientation und so drin steht, aber nix mit header oder bodytext oder 
>> dergleichen…
>> 
>> Wie also komme ich an den Inhalt des ursprünglichen Seitencontentobjekts ran?
>> 
>> #eieiei
>> 
>> gruss
>> Tom
>> 
>> 
>> 
>> Am 24.01.2011 um 16:00 schrieb Christian Wolff:
>> 
>>> 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);
>>> 
>>> auch ist zu beachten das die SubConfigurations punkte im array
>>> schlüsseln einen "punkt" am ende haben.
>>> 
>>> gruss chris
>> 
> 
> 
> - -- 
> Christian Wolff // Berlin
> http://www.connye.com
> 
> some projects:
> http://richtermediagroup.com | http://titanic.de | http://keyopinions.info
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (MingW32)
> 
> iEYEARECAAYFAk0+wIgACgkQIcCaXPh/JHEK5ACg5p6rL1h0kj8LAOyQi1uMpWI/
> Xh0AoJ2pCgCClBVuZmriRAtnSJlRzFHg
> =Nk54
> -----END PGP SIGNATURE-----
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german@lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

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

Antwort per Email an