Forums / General / Overriding an overrider lol

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>

eZ debug

Timing: Jan 18 2025 05:06:34
Script start
Timing: Jan 18 2025 05:06:34
Module start 'content'
Timing: Jan 18 2025 05:06:35
Module end 'content'
Timing: Jan 18 2025 05:06:35
Script end

Main resources:

Total runtime0.7357 sec
Peak memory usage4,096.0000 KB
Database Queries197

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 588.8359180.8438
Module start 'content' 0.00740.6271 769.6797554.1094
Module end 'content' 0.63450.1011 1,323.7891336.7578
Script end 0.7356  1,660.5469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.5833210.0002
Check MTime0.00160.2153210.0001
Mysql Total
Database connection0.00110.146910.0011
Mysqli_queries0.670991.20311970.0034
Looping result0.00160.22051950.0000
Template Total0.707696.220.3538
Template load0.00230.310920.0011
Template processing0.705395.866820.3526
Template load and register function0.00020.026010.0002
states
state_id_array0.00080.107210.0008
state_identifier_array0.00140.185720.0007
Override
Cache load0.00200.2677340.0001
Sytem overhead
Fetch class attribute can translate value0.00100.131630.0003
Fetch class attribute name0.00090.122050.0002
XML
Image XML parsing0.00080.102630.0003
class_abstraction
Instantiating content class attribute0.00000.001660.0000
General
dbfile0.00300.4031270.0001
String conversion0.00000.002630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs