My overrides don't work

Author Message

Cristian G. L.

Thursday 13 May 2004 1:18:22 am

Hi!
I have some overrides configured in /settings/siteaccess/mySiteAccess/override.ini.append:

<?php /* #?ini charset="iso-8859-1"?

[embed_image]
Source=content/view/embed.tpl
MatchFile=embed_image.tpl
Subdir=templates
Match[class]=5

[principal]
Source=node/view/full.tpl
MatchFile=principal.tpl
Subdir=templates
Match[class]=15

[contenido]
Source=node/view/full.tpl
MatchFile=contenido.tpl
Subdir=templates
Match[class]=16

[page_head]
Source=page_head.tpl
MatchFile=page_head.tpl
Subdir=templates

*/ ?>

The only override that seems to work is "contenido", but it works always! (not only when the class is 16). When i try to see a "Pagina Principal" (class 15), the system show me the "contenido" template.
When eZp may show my page_head.tpl, it shows the standard page_head. When eZP may show the embed_image.tpl (for show a image, not a link), it show a link...
It seems that my overrides don't have effect, except for contenido.tpl, that have "too effect".

My /settings/override.ini is empty (comments only) and i cleared the cache a lot of times (one by one). I am working with version 3.3-5 of eZpublish.

I am sorry about my english.

Thanks in advance,

Cristian

Christoph Nelles

Thursday 13 May 2004 2:39:32 am

I have the same problem ( http://www.ez.no/community/forum/setup_design/problem_with_tutorial ) with 3.4beta1. can someone confirm this as a bug?

Cristian G. L.

Thursday 13 May 2004 3:00:37 am

I modified the contenido.tpl but when i try to view a node with class=16 (contenido), it shows me the old contenido.tpl. That changes was made using the eZP web admin.

It seems a cache problem but... i cleared it 1837632 times (aprox. :D).

Regards,

Cristian

Cristian G. L.

Thursday 13 May 2004 3:29:30 am

I disabled ALL caches and now all works. I can't undertstand why the cache don't works how it must works.
I will develop my website with all caches disabled. I will try to solve the cache related problems when the website is completed.

Regards,

Cristian

Christoph Nelles

Thursday 13 May 2004 4:36:39 pm

where did you disable all the caches? there are a lot of possibilities to set a thing.

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

eZ debug

Timing: Jan 30 2025 22:27:07
Script start
Timing: Jan 30 2025 22:27:07
Module start 'layout'
Timing: Jan 30 2025 22:27:07
Module start 'content'
Timing: Jan 30 2025 22:27:07
Module end 'content'
Timing: Jan 30 2025 22:27:07
Script end

Main resources:

Total runtime0.0414 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.1250151.2109
Module start 'layout' 0.00540.0042 739.3359220.6875
Module start 'content' 0.00960.0300 960.02341,001.8047
Module end 'content' 0.03970.0017 1,961.828133.9922
Script end 0.0414  1,995.8203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00276.5559140.0002
Check MTime0.00122.8121140.0001
Mysql Total
Database connection0.00102.512010.0010
Mysqli_queries0.00276.541530.0009
Looping result0.00000.040910.0000
Template Total0.00122.910.0012
Template load0.00092.258110.0009
Template processing0.00020.577010.0002
Override
Cache load0.00061.514610.0006
General
dbfile0.012730.609280.0016
String conversion0.00000.020740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs