[Typo3] dynamically replacing template tags
Miles Scruggs
rt at garnetweb.com
Thu Sep 15 01:24:42 CEST 2005
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"
But again doesn't this just apply to the entire template, for every page?
I want to set the <body> as follows
<body id="page1> for page1
&
<body id="page2> for page2
Where page1, and page2 are PageTitles for the respective pages.
Is there a variable for PageTitle that can be inserted into
page.bodtTagAdd = id="$pagetitle" or something like that?
Thanks
Miles Scruggs
More information about the TYPO3-english
mailing list