[TYPO3] getting constants in an FE plugin extension
Dmitry Dulepov [typo3]
dmitry at typo3.org
Tue Sep 2 08:28:17 CEST 2008
Hi!
Simon Child wrote:
> How do I retrieve the values of some constants set on current page extension
> template or on the root page main template, when coding a FE plugin?
>
> I've been googling and searching TYPO3 docs but can't seem to find this
> anywhere. (I know it is in the docs somewhere, but where?!)
You can assign constants to TS properties and acces them this way. For example:
plugin.tx_extkey_pi1 {
prop = {$const}
}
You will get the value of the "const" as $this->conf['prop'] in the plugin.
--
Dmitry Dulepov
TYPO3 Core team
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
In the blog: http://typo3bloke.net/pages/book-reviews/presentation-zen-by-garr-reynolds/
More information about the TYPO3-english
mailing list