[Typo3] Multi header strategy
Matthew Manderson
matthew at manderson.co.uk
Wed Sep 7 12:48:38 CEST 2005
> I prefer to set the HTML template in the typoscript of header, so I
> don't have to rewrite all localization and general configuration code
> for each type of page...
An option:
Set the image in the 'border' so it can be edited in future by non Admin
users and use the EXT content_slide to carry that border content to sub
pages.
Another option:
Create a extension template for each section and use code similar to:
This goes in the setup of your root main template:
temp.mainTemplate.subparts.headerimg = HTML
temp.mainTemplate.subparts.headerimg.value = <img src="#" />
AND this goes in an extension template to overide the value set above. Add a
new EXT template for each section so you can override on a per section
basis.
page.10.subparts.headerimg.value = <img src="" />
(If the path is wrong look in the 'Template' > 'TypoScript Object Browser'
for the subparts section)
To replace markup code in your html template file like this:
###headerimg###TYPO3 will replace this using template setup field
TS###headerimg###
This is outline code ideas and not everything! If you need more help - make
sure you have ready Modern Template Building part 1&2
HTH
Matthew
More information about the TYPO3-english
mailing list