[TYPO3-templavoila] different templates by page.typeNum

Steffen Kamper info at sk-typo3.de
Sun Jun 21 23:42:40 CEST 2009


Hi,

stefano cecere schrieb:
> with "standard" templating it was easy to assign different templates to 
> the same page, depending on the typeNum of the page..
> 
> now i was wanderign how it could be done using templaviola... since the 
> DS/TP are "hardcoded" to the page..
> 
> any idea?
> 

yes, using childTemplate

try this:
in pageTS:
TCEFORM.tx_templavoila_tmplobj.rendertype.addItems.popup = Popup

in main TS
[globalVar = TSFE:type = 66]
page.10.childTemplate = popup
[end]

popup < page
popup.typeNum = 66
popup.10.childTemplate = popup

vg Steffen


More information about the TYPO3-project-templavoila mailing list