[Typo3] dynamically replacing template tags

Bernhard Kraft kraftb at kraftb.at
Thu Sep 15 03:10:29 CEST 2005


Miles Scruggs wrote:

> 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"

you have the choice.

You can find this in TSRef:
http://typo3.org/documentation/document-library/doc_core_tsref/quot_PAGE_quot/

TSRef is the guid to all your TYPO3 FE (Frontend) needs (when it comes about how pages are rendered)

TSConfig is mainly used for configuring aspects of BE (Backend) interface (you will need that if
you want to ease the work of your editors)

TSConfig is also documented in the T3 documentation matrix.


greets,
Bernhard



More information about the TYPO3-english mailing list