Popup content and override.ini again

Author Message

Michael Bolien

Monday 28 July 2003 6:53:43 am

Hi folks,

its me again with the same weird problem: I want to call a popup which is created depending on content in a folder.

I created a new override template "popup.tpl" which should replace pagelayout.tpl. So I added in the override.ini.append:

[popup]
Source=pagelayout.tpl
Matchfile=popup.tpl
Subdir=templates
Match[node]=65

But the popup always shows the main page .....
I cleared the cache, I messed around since hours .....

any ideas?

Michael

Bård Farstad

Monday 28 July 2003 6:56:45 am

Check that you've cleared the override cache. In the admin this is the "clear template cache" button.

With the shellscript you can do this with
./bin/shell/clearcache.sh --clear-all

The --clear-all is needed whenever you introduce a new template, since eZ publish caches all the template files.

If you use the webgui eZ publish will automatically clear the template cache.

Your configuration seems fine.

--bård

Documentation: http://ez.no/doc

Michael Bolien

Monday 28 July 2003 7:20:02 am

Thank you bård for the immediate answer,

so I cleared the cache by using that shall command, by using the admin interface -> same result. Instead of calling the popup.tpl, the pagelayout_section_1.tpl appears. pagelayout_section_1.tpl is the override for pagelayout.tpl. But, as I noticed now, it should have something to do with the order of entries in the override.ini.append.php. When I change the entries to:

[popup]
Source=pagelayout.tpl
Matchfile=popup.tpl
Subdir=templates
Match[node]=65

[pagelayout_section_1]
Source=pagelayout.tpl
MatchFile=pagelayout_section_1.tpl
Subdir=templates
Match[section]=1

then no template appears in the popup window, only a message from template-debug:

/design/mydedign/templates

do you have a solution?

Michael

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 18 2025 16:23:48
Script start
Timing: Jan 18 2025 16:23:48
Module start 'layout'
Timing: Jan 18 2025 16:23:48
Module start 'content'
Timing: Jan 18 2025 16:23:49
Module end 'content'
Timing: Jan 18 2025 16:23:49
Script end

Main resources:

Total runtime0.9292 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 588.0313152.6406
Module start 'layout' 0.00730.0037 740.671939.4766
Module start 'content' 0.01100.9166 780.1484537.5313
Module end 'content' 0.92760.0015 1,317.679712.4531
Script end 0.9291  1,330.1328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.4608160.0003
Check MTime0.00150.1572160.0001
Mysql Total
Database connection0.00110.118810.0011
Mysqli_queries0.861892.7548570.0151
Looping result0.00050.0550550.0000
Template Total0.881394.920.4407
Template load0.00230.251320.0012
Template processing0.879094.597820.4395
Template load and register function0.00020.018210.0002
states
state_id_array0.00100.108610.0010
state_identifier_array0.00180.196920.0009
Override
Cache load0.00200.2115420.0000
Sytem overhead
Fetch class attribute can translate value0.00130.142520.0007
Fetch class attribute name0.00110.119640.0003
XML
Image XML parsing0.00070.075520.0004
class_abstraction
Instantiating content class attribute0.00000.001040.0000
General
dbfile0.00750.8095170.0004
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs