

Here you can see how to reformat the default header, depending on the column the content is in. You can get a similar result using CSS selectors.
Here is the TypoScript:
temp.stdheader < lib.stdheader lib.stdheader > lib.stdheader = CASE lib.stdheader { key.field=colPos 1 < temp.stdheader 2 < temp.stdheader 3 < temp.stdheader default < temp.stdheader } lib.stdheader.default.10.1.fontTag = <h1>+++|+++</h1> lib.stdheader.1.10.1.fontTag = <h1>***|***</h1> lib.stdheader.2.10.1.fontTag = <h1>---|---</h1> lib.stdheader.3.10.1.fontTag =<h1>...|...</h1>
What is done?
First the stdheader is saved in a temporary location. Then the stdheader gets cleared and transformend in a CASE
(Typo3 Documentation CASE). Depending on the column ( default = normal, 1=left,2=right, 3=border) a different Object is created. Finally we change the format for the different columns. Note: Here it is done only for 1 Type of header, for the other types have a look to the Object Browser.
Similar Snippets:
Different link formatting for each column




However this generates double headers when editing a page title in the backend. After clear all cache the headers are printed correct. http://bugs.typo3.org/view.php?id=10277
Add comment