[TYPO3] Use template-name (template-object) as variable in TS (with TemplaVoila)

Bert Hiddink hiddink at bendoo.com
Wed Oct 3 20:17:24 CEST 2007


Hello!

Is there a way to use the name of the page-template name in use in order 
to put a condition with TS.

This example works OK:

[treeLevel = 1]
page.headerData.5 = IMG_RESOURCE
page.headerData.5.file {
   import.data = levelmedia: 2,slide
   import = uploads/media/
   import.listNum = 0
  # width = 270
  # height= 300
}
....
)
[end]


Now I want something like:

[templateName = Home]
page.headerData.5 = IMG_RESOURCE
page.headerData.5.file {
   import.data = levelmedia: 2,slide
   import = uploads/media/
   import.listNum = 0
  # width = 270
  # height= 300
}
....
)
[end]

With 'templateName' I refer to a TemplaVoila template-object.

Hope I made myself clear. Many thanks in advance!!!


Best regards,
-brt

Bert Hiddink
hiddink at bendoo.com


More information about the TYPO3-english mailing list