[TYPO3-dev] rendering content based on $type

Wolfgang Klinger wolfgang at stufenlos.net
Mon May 11 18:07:30 CEST 2009


*hiya!*

On May 11, 2009, at 5:58 PM, Horn Gábor wrote:
> i wrote a small extension and i would need it to play nicely with
> pdf_generator2 :) Unfortunatelly it seems i cannot solve it in css
> alone, so i would need a way that my plugin recognizes if it's output
> will be used by pdf_generator2 and do the rendering accordingly.
> Basically i think if i knew the value of 'type' parameter i would be
> okay, but i have problems getting it in a reliable way which works  
> with
> realurl and SimulateStaticDocuments ( t3lib_div::GPVar() doesn't  
> return
> it correctly in those cases, and ofc i cannot find it in $this- 
> >piVars[]
> as well).
> Maybe it's a very simple thing and i just overlooked something, but  
> can
> sy help me please what is the correct way in my plugin to detect it?

try $GLOBALS['TSFE']->type


bye
Wolfgang





More information about the TYPO3-dev mailing list