[TYPO3-english] getting $GLOBALS['TSFE']->tmpl->setup[plugin.][myext] in eID

EricTibo eric.thibault at dc.ulaval.ca
Wed Dec 21 21:10:46 CET 2011


I have a problem with the solution!
I am not able to list the configuration of my plugin... (setup inside my
page template)

plugin.tx_tacticrepoeuvres_pi1 {
	CMD = 
	pidList = 23014
	recursive = true
	gabarit = fileadmin/gabarit/oeuvres_template.html
	css = fileadmin/gabarit/styles.css
}

And in my eid script I have

function main() {

     $this->initTSFE(); //cut and past from Xavier Perseguers's post
      
     $conf =
$GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_tacticrepoeuvres_pi1.'];

     $content = print_r($conf, true);

     print($content);
}

All that the function main() returns is:

[includeLibs] =>
typo3conf/ext/tactic_repoeuvres/pi1/class.tx_tacticrepoeuvres_pi1.php
[userFunc] => tx_tacticrepoeuvres_pi1->main

It seams that this code "t3lib_div::_GP('id') inside the initTSFE()
function" is not able to get the page id! if I replace this code by the real
page ID number, everything works great....

How can I make this work?

Thanks a million times!
-- 
View this message in context: http://old.nabble.com/getting-%24GLOBALS-%27TSFE%27--%3Etmpl-%3Esetup-plugin.--myext--in-eID-tp32852571p33019156.html
Sent from the TYPO3 English mailing list archive at Nabble.com.



More information about the TYPO3-english mailing list