Overriding an overrider lol

Author Message

David Barker

Tuesday 05 August 2003 11:48:53 am

Hey,
I have got most of my site up and working but there is one thing I want to do. I have about 6 different folders coming off my root folder which each have their own section (and in these folders I put my content)... e.g Info, Products, About Us. But I would like to be able to make it so that when you go to the folder for Info (for example), I can make my own page (not just the listing... but make it as if I have just made my own HTML page). I'm not sure how to explain it.

At the moment, when I go to the Info folder, each folder/content in the Info folder is listed with the 'full' template. But I would like to make my totally own page instead of listing each content like it does now.

I currently have an override for called folder.tpl which is the template for 'full' when viewing a folder and I tried to make another override which overrides when you visit the node for Info (and in this template I put my own content), but it keeps just showing me the list like normal. Is it because I have two overrides for basically the same thing? How can I do this?

Thanks!
Dave

Alex Jones

Tuesday 05 August 2003 1:24:04 pm

Dave, are you actually using a node override for that folder which you want to override? Could you post the part of your override.ini.append so we can look at it?

In the meantime, here is an example of overriding a specific node which is of a class that also has an override associated with it:

[full_steelchart]
Source=node/view/full.tpl
MatchFile=full_steelchart.tpl
Subdir=templates
Match[node]=842

[article]
Source=node/view/full.tpl
MatchFile=article.tpl
Subdir=templates
Match[section]=3

Also, you may want to check the order of your overrides. Put the most specific (node) before the less specific.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

David Barker

Tuesday 05 August 2003 2:52:02 pm

Once again your advice has been great :) I've sorted it.
I was using the template editor thing that is under 'Set Up' in the Admin, and I couldn't see a way to change the order of the overrides so I didn't think it was important about the order but when you said I should look at the order, I changed my override.ini file.
Just curious... why is there no way to change the order in the admin interface?

Oh well - it's fixed! Thanks a lot!!!

Dave

Alex Jones

Wednesday 06 August 2003 8:28:31 am

Glad to hear you have sorted it out! You may want to post the ordering issue as a suggestion for a future revision. :)

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

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 21:42:39
Script start
Timing: Jan 30 2025 21:42:39
Module start 'layout'
Timing: Jan 30 2025 21:42:39
Module start 'content'
Timing: Jan 30 2025 21:42:39
Module end 'content'
Timing: Jan 30 2025 21:42:39
Script end

Main resources:

Total runtime0.0244 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 588.1250151.2109
Module start 'layout' 0.00580.0041 739.3359220.6875
Module start 'content' 0.00990.0128 960.02341,001.7578
Module end 'content' 0.02270.0017 1,961.781333.9922
Script end 0.0244  1,995.7734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003012.1259140.0002
Check MTime0.00114.6518140.0001
Mysql Total
Database connection0.00093.553510.0009
Mysqli_queries0.002811.427830.0009
Looping result0.00000.065410.0000
Template Total0.00114.710.0011
Template load0.00093.640410.0009
Template processing0.00020.995810.0002
Override
Cache load0.00062.493310.0006
General
dbfile0.00031.074880.0000
String conversion0.00000.036140.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