3.1 override weirdness

Author Message

Paul Forsyth

Friday 20 June 2003 9:03:45 am

Im having a problem with overrides. In the following override code I have three overrides, one for each view of a class. The overrides for full and menu views work as expected but line does not. When it display the line view defaults to that found in the standard node/view/line.tpl file, and not my override. I don't receive any errors. My permissions seem fine.

Does anyone else use line overrides in 3.1 (rev 2767)? Or am i doing something silly that i haven't spotted...

I should add that viewing the node/view/line.tpl file within the admin interface correctly shows my override.

[full_my_image]
Source=node/view/full.tpl
MatchFile=node/full_my_image.tpl
Subdir=templates
Match[class]=18

[line_my_image]
Source=node/view/line.tpl
MatchFile=node/line_my_image.tpl
Subdir=templates
Match[class]=18

[menu_my_image]
Source=node/view/menu.tpl
MatchFile=node/menu_my_image.tpl
Subdir=templates
Match[class]=18

And to display i use:

{node_view_gui view=line content_node=$my_node}

thanks

paul

Paul Forsyth

Friday 20 June 2003 9:26:13 am

Ah problem solved.

My actual code was:

{node_view_gui view=line content_node=$RO:item}

which was working of an related object array. but of course content_node requires a node, not a content object.

Entering:
{node_view_gui view=line content_node=$RO:item.main_node}

did the trick.

paul

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 15:01:38
Script start
Timing: Jan 18 2025 15:01:38
Module start 'layout'
Timing: Jan 18 2025 15:01:38
Module start 'content'
Timing: Jan 18 2025 15:01:38
Module end 'content'
Timing: Jan 18 2025 15:01:38
Script end

Main resources:

Total runtime0.0166 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 587.9063152.6250
Module start 'layout' 0.00590.0029 740.531339.4297
Module start 'content' 0.00880.0055 779.960989.1797
Module end 'content' 0.01430.0023 869.140630.3047
Script end 0.0166  899.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002817.0033140.0002
Check MTime0.00116.7858140.0001
Mysql Total
Database connection0.00063.811510.0006
Mysqli_queries0.002917.348730.0010
Looping result0.00000.137610.0000
Template Total0.001810.810.0018
Template load0.00095.351010.0009
Template processing0.00095.399710.0009
Override
Cache load0.00063.577810.0006
General
dbfile0.00158.759780.0002
String conversion0.00000.068840.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