[Typo3] how to get FE TS into BE Module

Bernhard Kraft kraftb at kraftb.at
Sat May 21 00:59:56 CEST 2005


Chris Wittmann [SwiftLizard] wrote:
> Hi,
> 
> if i am not totaly wrong you should get the TS via TS,..
> plugin.your_plungins_extKey < plugin.tt_products.statusCodes

Well believe me or not. But there is no TS parsing in the BE. A BE module normally
knows nothing about pages and so can't parse a TS as TS is always bound to some
page. Of course "Web" module submodules get a "id" parameter in their GET vars but
that is some kind of "extra".

What you would have to do to get TS in the BE is to have a look at the index.php
in the website root (the FE index.php) and look how $TSFE ($GLOBALS['TSFE']) is
instanciated in there ... you would have to do the same and then get the
TS in your plugin as you would normally do in a FE plugin ... by :
$GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_whatever.']['whatever']

(Please remember that you can just use $this->conf if you want to access plugin.tx_myplugin_piN
and that $this->conf is JUST AVAILABLE in the FE ... just look how $conf is passed to your FE
plugin's ->main method and then $this->conf = $conf gets assigned in the very beginning.
This $conf passing doens't happen in the BE !)


greets,
Bernhard



More information about the TYPO3-english mailing list