Having problems showing articles in foler

Author Message

Douglas Hammond

Wednesday 28 May 2003 12:56:39 pm

I have then folowing

{let article_list=fetch(content,list,hash(parent_node_id,$node.node_id, class_filter_type, include, class_filter_array, array(2)))}
{section name=Child loop=$article_list}
content_view_gui view=text_linked content_object=$Child:item}
{/section}
{/let}

and i get no articles showing and i have to in the folder.

please help

Jo Henrik Endrerud

Thursday 29 May 2003 3:44:10 am

Here you are fetching all the nodes containing an article from the current level. Then you are trying to show the nodes as objects. In content_view_gui (I assume you just forgot the beginning { in your posting) you are saying that content_object is the current node in the loop, while it needs to be the object.

Two solutions:
use ...content_object=$Child:item.object}

or (as I would recomend):
change content_view_gui to node_view_gui and use content_node=$Child:item

Jo Henrik Endrerud | System Developer @ Seeds Consulting | http://www.seeds.no

Douglas Hammond

Thursday 29 May 2003 7:49:39 am

I forget to give user access to the class but you helped me for my next quest, i was trying to display the articles using custom line display class and you hva to use nod_view_gui instead of content_view_gui to get it to use the custom template

thanks

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

Main resources:

Total runtime0.7175 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.0469152.6406
Module start 'layout' 0.00540.0029 740.687539.4766
Module start 'content' 0.00830.7074 780.1641498.1953
Module end 'content' 0.71580.0017 1,278.35948.1250
Script end 0.7174  1,286.4844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4634160.0002
Check MTime0.00130.1796160.0001
Mysql Total
Database connection0.00060.081710.0006
Mysqli_queries0.670793.4829570.0118
Looping result0.00060.0827550.0000
Template Total0.684495.420.3422
Template load0.00240.327820.0012
Template processing0.682095.064220.3410
Template load and register function0.00020.028810.0002
states
state_id_array0.00120.171210.0012
state_identifier_array0.00100.133820.0005
Override
Cache load0.00190.2697200.0001
Sytem overhead
Fetch class attribute can translate value0.00130.175420.0006
Fetch class attribute name0.00190.259430.0006
XML
Image XML parsing0.00020.033420.0001
class_abstraction
Instantiating content class attribute0.00000.001730.0000
General
dbfile0.00080.1107100.0001
String conversion0.00000.001340.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 5

Time used to render debug report: 0.0002 secs