[TYPO3-dev] rendering content based on $type
Horn Gábor
gabor at h3online.hu
Mon May 11 18:15:06 CEST 2009
Dear Wolgang,
that's it thanks :) i even tried to dump $GLOBALS while was looking for
the solution but well didn't spot it in the 50 page long output ;)
cheers, Gabor
Wolfgang Klinger írta:
>
> *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