[TYPO3-ttnews] How to pass single_pid from tt_news FlexForm/config to genericmarker?

Oliver Rowlands oliver at liquidlight.co.uk
Sun Jul 11 13:58:43 CEST 2010


Hi Marcus,

I do not believe that there is a clean ways to handle this, a few 
thoughts come to mind though:

- You could use a similar technique employed by EXT:fb_magento which 
consists of looking up the tt_news plugin on the current page and 
extracting the single page ID directly from it.

- You could extend tt_news (maybe using the "extraGlobalMarkerHook" 
hook) and store the $this->conf['singlePid'] in a register then retrieve 
it from your extension.

HTH,

Oliver

Marcus 'biesior' Biesioroff wrote:
> ellou' List!
> 
> I've created small ext and passed it's output to SINGLE view using 
> genericmarkers:
> 
> plugin.tt_news.genericmarkers.MYEXT < plugin.tx_myext_pi1
> 
> It generates list of news with some different ways and it should inherit 
> default methods for defining single_pid for each list item. So the 
> simplest method is done - if main category has declared single_pid it is 
> used... but I HAVE NO IDEA (and I hope that you'll helpme with this) how 
> to get in my extension class file single_pid defined in flexform or in 
> TS which displays the tt_news view.
> 
> Any advices will be very helpful for me!
> 
> With best greetings, Marcus.
> 
> 

-- 
Oliver Rowlands
:: Liquid Light ::

E - oliver at liquidlight.co.uk
W - http://www.liquidlight.co.uk

T - 00 44 (0)845 6 58 88 35
F - 00 44 (0)845 6 58 44 35


More information about the TYPO3-project-tt-news mailing list