Forums / Setup & design / Overriding line view template (devs please pay attention)

Overriding line view template (devs please pay attention)

Author Message

Noicokuna Niemoge

Tuesday 03 March 2009 5:04:27 am

Hello;

I'd like to override line view for the children displayed in a folder node numbered 61. Unfortunately, there are no results.

Code in override.ini:

[line_article2]
Source=node/view/line.tpl
MatchFile=line/article2.tpl
Subdir=templates
Match[node]=61

Or maybe should I override a whole full.tpl template of a folder? But in this case, how to modify the children line view?

Shiki soku ze ku...

Noicokuna Niemoge

Tuesday 03 March 2009 5:26:26 am

I even try overriding full template:

[full_article2]
Source=node/view/full.tpl
MatchFile=full/folder2.tpl
Subdir=templates
Match[node]=63

Why this #@%& doesn't work?! (excuse my swearing, but I clean cache, do everything according to instructions, and it does... NOTHING)

I copy override.ini.append to all siteaccesses, just in case...
The paths are OK...
What am I doing wrong?

I'm using eZ 4.0.2

Please help!

Shiki soku ze ku...

Jean-Yves Zinsou

Tuesday 03 March 2009 7:36:46 am

Hi there
make sure your override template is in the right place

<site design or extension design>/override/templates/lin/article2.tpl.

HTH

Regards

Do Androids Dream of Electric Sheep?
I dream of eZpubliSheep....
------------------------------------------------------------------------
http://www.alma.fr

Noicokuna Niemoge

Tuesday 03 March 2009 11:48:12 pm

Yes, I place the files correctly, in
extension/ezwebin/design/ezwebin/override/templates/full
extension/ezwebin/design/ezwebin/override/templates/line
extension/ezwebin/design/ezwebin/override/templates

I even changed it to look for file straight in templates folder and moved folder2.tpl to override/templates, still nothing. I checked the node ID I want to change carefully, and it's 63. I clear all possible cache.

[line_article2]
Source=node/view/full.tpl
MatchFile=folder2.tpl
Subdir=templates
Match[node]=63

This is the core functionality, how am I supposed to customize the site without it?? It should be stable, it should be reworked! I'm pretty frustrated.

The whole design files spread all over the place are pissing me off as well. I don't care ezwebin is an extension: the design files and templates should be placed in design folder. What's the problem with extension packages having structure:

root/extension/myextension/
root/design/myextension_design/

This doesn't make any sense as it is now. And eZ claims it separates content from design, so let it also separate design logic from programming logic. If they want to be clean and tidy, they should be everywhere.

<b>...and why I have errors in log file like:
"template x not found in any resource"
As I'm using the very default ezwebin design????

Why these errors disappear when I create "ezwebin" folder in design folder and copy there the design files from extension?

There should be no error anyway because only template changes made in extension/ezwebin are reflected in the site.
</b>

I suppose the fallback system is faulty, it would be a lot more simple if all design files were placed in design folder, I suppose.

And still, I cannot make a node override... However, I can override templates for new classes.

Shiki soku ze ku...

eZ debug

Timing: Jan 19 2025 01:08:15
Script start
Timing: Jan 19 2025 01:08:15
Module start 'content'
Timing: Jan 19 2025 01:08:15
Module end 'content'
Timing: Jan 19 2025 01:08:15
Script end

Main resources:

Total runtime0.1413 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 589.1953180.8125
Module start 'content' 0.00690.0046 770.007898.1016
Module end 'content' 0.01140.1298 868.1094526.1719
Script end 0.1412  1,394.2813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00332.3237200.0002
Check MTime0.00140.9569200.0001
Mysql Total
Database connection0.00060.408610.0006
Mysqli_queries0.100370.97111410.0007
Looping result0.00110.79871390.0000
Template Total0.129491.610.1294
Template load0.00080.600810.0008
Template processing0.128691.018410.1286
Override
Cache load0.00060.405510.0006
Sytem overhead
Fetch class attribute can translate value0.00070.524510.0007
XML
Image XML parsing0.00020.130310.0002
General
dbfile0.00292.0354200.0001
String conversion0.00000.005130.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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