[Typo3-dev] Better templating: PHP!

S. Teuber traveler_in_time at gmx.net
Mon Sep 19 09:28:10 CEST 2005


Hi Elmar,

> To modify a HTML-template you even need additional rights. The right
> to alter files.

Since altered HTML-templates should not be overwritten when updating the 
extension they belong to, it is a common best practise to make the path to 
the template configurable. This allows to place all HTML-templates in the 
fileadmin-directory (or any other filemount). You don't need administration 
rights to alter files in a filemount, every editor can do that!

More important, most teams consist of specialists. There's people with 
outstanding HTML/CSS-skills, good coders, TypoScript-gurus. Some people may 
have more than one skill, but typically, at least in larger 
teams/companies, the tasks are divided like this. 'A' does the graphics, 
'B' includes them in a HTML template, 'C' mounts the combined work of 'A' 
and 'B' into TYPO3. This workflow benefits a lot from HTML templates in 
files (opposing to some HTML in TypoScript).

Seperating code and layout completely is another best practise, by the way, 
so in my opinion, it's a bad idea to include anything "functional" into a 
HTML-template, be it PHP-Code or some own reduced coding language.

Sven




More information about the TYPO3-dev mailing list