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...

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