[Typo3] dynamically replacing template tags
Miles Scruggs
rt at garnetweb.com
Thu Sep 15 01:34:02 CEST 2005
> > I did dig through the docs a bit and had a go at this code:
>
> Somewhere in your Root-TS (TypoScript) Template you have the following
> code in the SETUP field:
> -----------snip--------------
> page = PAGE
> page.typeNum = 0
> page.10 = USER
> page.10.userFunc = tx_templavoila_pi1->main_page
> -----------snip--------------
>
>
> there you add:
>
> page.bodyTag = <body class="whatever>
>
> or
>
> page.bodyTagAdd = class="whatever"
>
Ahh turns out I can do this by making an extension template, and putting the
changes in there.
Thanks
Miles
More information about the TYPO3-english
mailing list