[Typo3] Template on next level starts from one level deeper?

Vlatko Šurlan vsurlan at netRMVME.hr
Wed Jul 20 10:05:05 CEST 2005


Bing Du wrote:
> I created two root level templates, tempA and tempB.  I want only the 
> frontpage to use tempA and all other pages use tempB.

It sounds to me that what you need is this:
[globalVar = TSFE:id = 1] # Load index.html for the page with pid 1
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/template/index.html
}
[else] # For all other pages load content.html
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/template/content.html
}
[end]



More information about the TYPO3-english mailing list