[TYPO3-dev] Get content from other plugin within plugin
Steffen Müller
typo3 at t3node.com
Tue Jan 26 15:44:08 CET 2010
Hi.
On 26.01.2010 15:25 Tomas Havner wrote:
> Hi,
>
> I'm trying to get the content from one plugin (in this case mailform_plus)
> into another extension. This is what I got so far:
>
> require_once(t3lib_extMgm::extPath("th_mailformplus")."pi1/class.tx_thmailformplus_pi1.php");
> $tx_thmailformplus_pi1 = new tx_thmailformplus_pi1();
> $content = $tx_thmailformplus_pi1->main($content, $this->conf);
>
> all I get from this is a blank screen. Could someone point me in the right
> direction.
>
// Get plugin configuration
$conf = $GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_thmailformplus_pi1.'];
// Get plugin instance
$cObj = t3lib_div::makeInstance('tslib_cObj');
/* @var $cObj tslib_cObj */
$cObj->start(array(), '');
$content = $cObj->cObjGetSingle('USER', $conf);
Taken from pagebrowse extension:
http://typo3.org/documentation/document-library/extension-manuals/pagebrowse/1.0.1/view/1/4/
--
cheers,
Steffen
TYPO3 Blog: http://www.t3node.com/
Microblog: http://twitter.com/t3node
More information about the TYPO3-dev
mailing list