Weblancet
Simplicity
We designed WebLancet to be as easy as possible to use. More
Scalability
WebLancet is designed to be scalable and extendable beyond the limits of imagination. More
Open source
WebLancet meets demand best as it is driven by community. More
Inherited templates
Inherited templates
2010 08 12 18:23:01
If You are developing some projects that look really similar but needs some differences, You can chain the templates.

I.E. You create the template for project Base, with all images, component dirs and other stuff, and you want to replicate as Inherited.

You must:
  • set template to Inherited,
  • set property key=Templates,ComponentType=None to Base->Inherited
  • Also have the "Base" directory in the ./Templates/ dir,
  • Create a file  ./Templates/Inherited/LinkerConfig.inc.php with content:

<?php        $parentTemplate = 'Base';   ?>


All files will be tried to be taken from Inherited, if not found - then from Base, then from project tree.

Theoretically You can chain as many templates as You want, but it can negatively impact performance.