Forums / Setup & design / override template feature

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

override template feature

Author Message

vincenzo dima

Sunday 11 March 2007 11:48:15 am

I'am design a website with 3 main section; I want a templates for home and a different template for a section. I started from corporate_site package: in design/corporate_site/override/templates i put my pagelayout.tpl for home page e section.tpl file for section layout.

In settings/siteaccess/.. I add the following rules to file override.ini.append.php
[section]
Source=../../corporate_site/override/templates/pagelayout.tpl
MatchFile=progetto.tpl
Subdir=../../corporate_site/override/templates
Match[section]=69

but it don't work....

Thank for help
B.R.
vincenzo

 

christian bencivenni

Tuesday 13 March 2007 3:37:04 am

Try specifing the path of progetto.tpl in the Match option.

Xavier Serna

Tuesday 13 March 2007 4:03:12 am

Hi vincenzo,

you have an error in your override definition, try this:

[section]
Source=pagelayout.tpl
MatchFile=progetto.tpl
Subdir=templates
Match[section]=69

You have to put yout progetto.tpl inside override/templates folder. And this rule applies only for section id 69.

hope this helps,

--
Xavier Serna
eZ Publish Certified Developer
Departament de Software
Microblau S.L. - http://www.microblau.net
+34 937 466 205

vincenzo dima

Wednesday 21 March 2007 1:29:41 am

Thanks for hints..
At end ..I replaced home page with a different layout using this code in my override.ini.append.php file:
[homepage]
Source=pagelayout.tpl
MatchFile=homepage.tpl
Subdir=templates
Match[node]=2

Now my new home page can be accessed only add a slash "/" at end of address but I think
this issue can be skipped with a Apache RewriteRule.. I hope
Thanks a lot
Vincenzo