[Typo3] dynamically replacing template tags

Bernhard Kraft kraftb at kraftb.at
Thu Sep 15 03:32:38 CEST 2005


Miles Scruggs wrote:
> 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?
> 

It would be no good idea to insert the title of an page as
class or id ... it could contain spaces or other special characters.

Wouldn't it be easier to insert a stylesheet defining the body tag how
it should be for the actual page instead having one big stylesheet with
dozens of body.page1 { bla} definitions ....

you can easily add stylesheets to any page using the extension:
Page Stylesheet Selector
http://typo3.org/extensions/repository/search/css_select/

It also supports to add a stylesheet recursively to all pages in a subtree
of the pagetree.


greets,
Bernhard



More information about the TYPO3-english mailing list