[TYPO3] Calling other extensions using PHP

Christian Welzel gawain at camlann.de
Sun Jun 24 00:02:22 CEST 2007


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


More information about the TYPO3-english mailing list