Extension and siteaccess

Author Message

Frederic GUEHO

Saturday 29 September 2007 4:22:28 pm

I use my own extension to alter the plain_site design.

I'd like to change the templates rules in "override.ini.append.php" for a siteaccess.
So I created the following file :
/extension/[my_extension]/settings/siteaccess/[my_siteaccess]/override.ini.append.php

With the following rules :

[full_folder]
Source=node/view/full.tpl
MatchFile=[my_template].tpl
Subdir=templates
Match[class_identifier]=folder

It's not working !!!!

So I tried the same rules in :
/extension/[my_extension]/settings/override.ini.append.php
It's working but it alter all my siteaccess. And it's not what I want.

So I tried the same rules in :
/settings/siteaccess/[my_siteaccess]/override.ini.append.php
It's working but my templates rules are not in my extension any more. And it's not what I want.

I order to have my template rules in my own extension for a particular siteaccess, is there something I'm missing because it is just not working as expected ?

Thanks for your help.

Frederic GUEHO

Saturday 29 September 2007 5:59:38 pm

Problem solved.

I was using (and it was not working) :
[full_folder]
Source=node/view/line.tpl
MatchFile=billet.tpl
Subdir=templates
Match[class_identifier]=billet

Now I use (and it's working) :
[billet]
Source=node/view/line.tpl
MatchFile=billet.tpl
Subdir=templates
Match[class_identifier]=billet

I don't understand why. Buy anyway, everything's fine ! :)

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.