[TYPO3] Calling other extensions using PHP

Rens Admiraal typo3 at ambitiondesign.nl
Sun Jun 24 13:06:39 CEST 2007


Christian,

I did get tt_news to show up, but one 'little' problem is left... I  
constantly get the error 'no CODE given', even if I set $conf['code']  
= 'LIST'; before calling tt_news.

I also tried to set plugin.tt_news.code = LIST, but this still gives  
the same error. Do you know a solution for this problem?

Greetz

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