[Typo3] Share template files?

Dmitry Dulepov typo3 at fm-world.ru
Mon Oct 10 20:16:29 CEST 2005


Hi!

Amir Mualem wrote:
> Is it possible to share a typoscript template record/file between two
> pages that are side by side on the hierarchy?  I would like to manage
> one template for different sites/subsites.
> 
> http://img.photobucket.com/albums/v289/Amirsan/hierarchy2.jpg
> 
> As you can see in that image, the page circled in blue is the one that
> has the template, and the pages circled in red is the pages that I would
> like to share the template file with.  I dont want to have to update the
> template file for each site either.

1. Create a page under "Root" and put the template there.
2. Move all pages inside this new page
3. For all pages edit page header and set "site root" check and unset
"clear ..." check.
4. create extension templates as necessary on each page.

This is the easiest way. It has its own drawbacks (for example, you'll
have to specify site title in TS instead of tempate record header).

More complex way uses sysfolder to store templates and includes them to
your site template (just like standard templates do).

Dmitry.



More information about the TYPO3-english mailing list