Trying to display line view of articles on my pagelayout.tpl fails

Author Message

Felix Laate

Monday 29 November 2004 3:05:33 am

Hey there!

I'm tying to display the line view of some articles (residing in a certain folder) on my pagelayout.tpl.

I do it like this:

{let children=fetch(content,list,hash(parent_node_id,2,sort_by,$node.sort_array,limit,3,class_filter_type,include,class_filter_array,array('article')))}
{section name=Child loop=$children}
<td>{node_view_gui view=line content_node=$Child:item}</td>
{/section}
{/let}

This results in small blue images:

<td><img src="/design/standard/images/class_2.png" border="0" alt="Document" />&nbsp;</td>

Changing to full view results in:

Default object view. Click to create a custom template, Node ID: , Object ID: ...

What does this? Why can't I have have the articles displayed?

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Felix Laate

Tuesday 30 November 2004 5:25:53 am

Problem solved..

It turned out to be namespace problem. The code was within a switch with a name assigned to it. Removing the named solved the problem.

felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

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 19 2025 01:12:09
Script start
Timing: Jan 19 2025 01:12:09
Module start 'layout'
Timing: Jan 19 2025 01:12:09
Module start 'content'
Timing: Jan 19 2025 01:12:09
Module end 'content'
Timing: Jan 19 2025 01:12:09
Script end

Main resources:

Total runtime0.7253 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 590.8750152.6563
Module start 'layout' 0.00580.0028 743.531339.4922
Module start 'content' 0.00860.7152 783.0234489.0000
Module end 'content' 0.72380.0015 1,272.02348.0938
Script end 0.7253  1,280.1172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4584160.0002
Check MTime0.00140.1898160.0001
Mysql Total
Database connection0.00100.135010.0010
Mysqli_queries0.677693.4247520.0130
Looping result0.00040.0605500.0000
Template Total0.694795.820.3473
Template load0.00220.308420.0011
Template processing0.692495.464720.3462
Template load and register function0.00010.014010.0001
states
state_id_array0.00120.162310.0012
state_identifier_array0.00070.102120.0004
Override
Cache load0.00180.2526190.0001
Sytem overhead
Fetch class attribute can translate value0.00050.071310.0005
Fetch class attribute name0.00110.144930.0004
XML
Image XML parsing0.00060.083810.0006
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00080.1170160.0001
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

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

Time used to render debug report: 0.0001 secs