[TYPO3-english] template selector, setup variable

Leander Seige nojunk at seige.net
Fri Jan 30 17:35:55 CET 2009


Hello all,

I built a template selector similar to the one in MTB2, I'd like to make
the hardcoded path configurable by a variable in the template setup. So
I introduced an new variable
plugin.tx_myselector_pi1 {
	templateBaseDir = fileadmin/mytmpl/
}
I can see this variable in the main method of the plugin because it is
passed through th $conf array parameter. But how can I see this variable
in the other class which fills the selector box in the backend (called
_addfilestosel in MTB2)? All my attempts to extract it from one of the
big env variables failed. Could someone give me a hint please.

regards,
Leander


More information about the TYPO3-english mailing list