[TYPO3-dev] Call tt_news plugin from my created extension?
Andreas Wagner
andreas.wagner at klee.se
Wed Jun 4 14:51:46 CEST 2008
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
More information about the TYPO3-dev
mailing list