[TYPO3-dev] Call tt_news plugin from my created extension?
    Brian Bendtsen 
    bb at bellevuevej.dk
       
    Wed Jun  4 16:19:24 CEST 2008
    
    
  
Brian Bendtsen skrev:
> 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
By the way
Do I need to use a hook to add something like "tt_news.tx_myext_field = 
$this->piVars['myID']" to the tt_news select query?
Or is there an easier way?
/Brian
    
    
More information about the TYPO3-dev
mailing list