[Typo3] Share template files?

Amir Mualem amir219 at sbcglobal.net
Thu Oct 13 17:55:13 CEST 2005


Dmitry Dulepov wrote:
> 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.

Dmitry, I dont really understand your drawbacks to your first 
suggestion.  What do you mean specify site title?  Also, what other 
drawbacks might I encounter using your way?



More information about the TYPO3-english mailing list