[TYPO3-dev] Call tt_news plugin from my created extension?
Brian Bendtsen
bb at bellevuevej.dk
Wed Jun 4 15:00:33 CEST 2008
Andreas Wagner skrev:
> Brian Bendtsen wrote:
>>
>> From my php code I try something like this:
>>
>> $markerArray['###TT_NEWS_PLUGIN###'] = $conf['insertnews'];
>>
>> and in my ts setup for the current page I have inserted this:
>>
>> plugin.tt_news {
>> templateFile =
>> fileadmin/templates/extensions/tt_news/tt_news_latest_small.html
>> code = LATEST
>> latestLimit = 2
>> pid_list = 248
>> }
>>
>> plugin.tx_myplugin_pi1.newsmarker < plugin.tt_news
>>
>> But the output is "USER".
>
> What happens if you try:
>
> $markerArray['###TT_NEWS_PLUGIN###'] =
> $this->cObj->cObjGetSingle($conf['newsmarker'], $conf['newsmarker.']);
>
> Regards,
>
> Andreas
Hi Andreas
That did it, thank you!
/Brian
More information about the TYPO3-dev
mailing list