overriding pagelayout.tpl

overriding pagelayout.tpl

Thursday 27 November 2003 9:17:46 am - 8 replies

Author Message

Tore Ã…bodsvik

Saturday 29 November 2003 11:52:14 am

I can verify this problem.

When i set the override.ini.append file in affect.
The section i want to override works ok.
But the pagelayout.tpl file "crashes".

Here is some debug:
Warning: PHP Nov 29 2003 20:43:27
Undefined variable: match in /home/sites/tasy.no/scamp/kernel/common/eztemplatedesignresource.php on line 278

Warning: eZTemplate Nov 29 2003 20:43:27
No template could be loaded for "pagelayout.tpl" using resource "design"

Regards Tore

Dmitry Yakovlev

Friday 12 December 2003 3:31:21 pm

Try to rename template file in this way: pagelayout_section_[section_number].tpl and rewrite ini correspondingly:

[pagelayout_section_13]
Source=pagelayout.tpl
MatchFile=pagelayout_section_13.tpl
Subdir=templates
Match[section]=13

Also custom pagelayout.tpl should be present in your design/templates directory

All this worked fine for me!

Stephan Brezinsky

Wednesday 10 March 2004 7:44:56 am

I am experiencing this same problem in 3.3-3, any other suggestions?

I have elimintated the matching error by naming the templates correctly, but I still get this error:

Warning: eZTemplate Mar 10 2004 10:47:19

No template could be loaded for "pagelayout.tpl" using resource "design"

Paul Borgermans

Wednesday 10 March 2004 7:58:21 am

Do you have a

design/<yourdesign>/templates/pagelayout.tpl ?

That one should be picked up by default

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Stephan Brezinsky

Wednesday 10 March 2004 8:31:24 am

I do have an ordinary pagelayout setup and it works across the whole site if i do not try to add a section pagelayout template. The problem is that ezpub is not falling back on the default pagelayout for any of the sections that I do not define in override.ini.

e.g.

with no override, sections 1,3,5, use design/mydesign/pagelayout.tpl

with override set for section 5, section 5 uses pagelayout_section_5.tpl. sections 1,3 use nothing.

Paul Borgermans

Wednesday 10 March 2004 9:44:37 am

I think your override cache is disabled in site.ini or you suffer from some permission problem.

This way I can reproduce the problem here. If enabling override cache solves your problem, please file a bug report.

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Stephan Brezinsky

Wednesday 10 March 2004 10:26:24 am

My override cache is enabled and has been from the start. I can look into permissions, but I don't really see how that will change it, since it does open the pagelayout.tpl correctly when no sections are overridden.

Paul Borgermans

Wednesday 10 March 2004 10:59:29 am

Sorry, I have no more ideas what could trigger this behaviour

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

You must be logged in to post messages in this topic!

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