[TYPO3] automaketemplate using bodytag of template with different classes

Pascal Cramer pascal at NOSPAMroguesheep.nl
Sat Aug 23 18:24:44 CEST 2008


Hi T.M.

you can set the body tag using TS:
page.bodyTag = <body class="template1">

perhaps by using conditions you can read the selected template?
(I don't have any experience with rlmp_templateselector, so don't know how it 
works and if you can address the selection)

Pascal

T.M.Snyder wrote:
> Hi all,
> 
> I am using T4.1, automaketemplate and rlmp_templateselector.
> 
> I have 3 different templates, and I have 3 different classes in the 
> bodytags, so I can differ these templates for my styles.
> 
> Im my template 1 there is bodytag like <body class="template1"> etc....for 2 
> and 3
> 
> The problem is now, that my bodytags from my templates is removed/replaces 
> just to <body>
> 
> 
> My tmplcode is like this:
> 
> <!--- DOCUMENT_BODY -->
> <body class"=template1">
> 
> all the stuff here...
> </body>
> <!--- DOCUMENT_BODY -->
> 
> 
> So how can I achieve to get my specific class from the template to be 
> rendered to output?
> 
> Any ideas and suggestions?
> 
> Hiighly appreciated!
> 
> =)
> 
> Have a nice weekend! 
> 
> 


More information about the TYPO3-english mailing list