[Typo3] front page - one template, all other pages - another template?

Vlatko Šurlan vsurlan at NOCAPS.net.hr
Fri Jul 1 09:25:07 CEST 2005


Claus Faber wrote:
> it does not work directly as typoscript code supports conditions though,
 > but _not_ the condition [pid=<something>] (pity, though).

Fortunately enough, I have found that this is not quite so. Please 
observe the following typoscript code:
------------------------------------------------------------------
[globalVar = TSFE:id = 1]
plugin.tx_automaketemplate_pi1 {
   # Read the template file:
   content = FILE
   content.file = fileadmin/template/index.html
}
[else]
plugin.tx_automaketemplate_pi1 {
   # Read the template file:
   content = FILE
   content.file = fileadmin/template/content.html
}
[end]
------------------------------------------------------------------

Works absolutley great!



More information about the TYPO3-english mailing list