[TYPO3] Calling other extensions using PHP

Rens Admiraal typo3 at ambitiondesign.nl
Sun Jun 24 10:00:50 CEST 2007


Hi Christian,

thanks for your answer! it works ;-)

Op 24-jun-2007, om 0:02 heeft Christian Welzel het volgende geschreven:

> Rens Admiraal wrote:
>
>> For now I create my content using PHP, and I thought I could call
>> another plugin like this:
>
> especially for tt_news do it this way:
>
> $news = t3lib_div::makeInstance('tx_ttnews');
> $news->cObj = $cObj->cObj;
> $conf = $GLOBALS['TSFE']->tmpl->setup['plugin.']['tt_news.'];
> # $conf[pages] = $GLOBALS['TSFE']->id;
> $div = $news->main_news($content, $conf));
>
> Remove the comment in die 4th line to get the news from the current  
> page.
>
> -- 
>  MfG, Christian Welzel
>
>   GPG-Key:     http://www.camlann.de/key.asc
>   Fingerprint: 4F50 19BF 3346 36A6 CFA9 DBDC C268 6D24 70A1 AD15
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english



More information about the TYPO3-english mailing list