[TYPO3-templavoila] Conditionals in Data Structure
Dmitry Dulepov [typo3bloke.net]
typo3 at accio.lv
Wed Sep 6 08:08:40 CEST 2006
Hi!
Ron Hall wrote:
> Anyone have any insight into this?
Constants in DS must be accessed differently than in TS setup. This
happens because TS in DS is a separate unit. Constants in main TS belong
to that main TS.
You need to let TV know which constants you want to use. You do it in
the main template. There you have:
page.10 = USER
page.10.userFunc = tx_templavoila_pi1->main_page
Add line there for each constant:
page.10.TSconst.myconst = {$myconst}
Notice that only one levelconstatnts cn be used this way. I.e. you
cannot have "page.10.TSconst.myconst.myvalue" there.
Btw, it is all in the manual.
--
Dmitry Dulepov
http://typo3bloke.net/
"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)
More information about the TYPO3-project-templavoila
mailing list