Wednesday 22 April 2009 2:02:30 pm
Hi Guilllaume, The easiest way to do that is probably to use a new siteaccess with its own design. So you just have to put your xml tags templates in the right folder and it should work. Another solution is to play with eZTemplateDesignResource API to build your own override condition. For instance, in your module before calling the template engine you can write something like :
$res = eZTemplateDesignResource::instance();
$designKeys = array( array( 'my_condition', 'a_value' ) );
$res->setKeys( $designKeys );
And then you can write override rules like that :
[a_condition]
Source=path/to/the/original.tpl
MatchFile=path/to/new.tpl
Subdir=templates
Match[my_condition]=a_value
to use specific templates in your module only.
Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish
|