[TYPO3-dev] Get content from other plugin within plugin
Dmitry Dulepov
dmitry.dulepov+t3ml at gmail.com
Wed Jan 27 07:18:22 CET 2010
Hi!
On 2010-01-26 16:44:08 +0200, Steffen Müller said:
> $content = $cObj->cObjGetSingle('USER', $conf);
Do not hard–code it to 'USER' because plugin can be USER_INT as well.
Here is the right call:
$objType = $GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_thmailformplus_pi1'];
$content = $cObj->cObjGetSingle($objType, $conf);
> Taken from pagebrowse extension:
> http://typo3.org/documentation/document-library/extension-manuals/pagebrowse/1.0.1/view/1/4/
This
>
is just an example :) It is not necessarily apply to all extensions :)
--
Dmitry Dulepov
"Trust me, I am a doctor!" (c) Gregory House, M.D.
More information about the TYPO3-dev
mailing list