Can't display nodes ---

Author Message

bs jeong

Saturday 17 May 2003 10:56:43 pm

Can't really explain why, in {let} '265' is parent node id, '33' is class id what i want to display. nation(class id 33) is my class that desc nation information.

I want to display only nation information.
There is many element in parent node(265), link, articals and nation(my class), but i want to nation class to display
please...............

It's my source code in file line_class_33.tpl
-----source code-----
{* set children variable *}
{let childen=fetch('content',list,hash(parent_node_id ,265 ,class_filter_type, include, class_filter_array, array(33)))}

{* loop children and show line view *}
{section name=Child loop=$children}
{node_view_gui view=line content_node=$Child:item.name}<br>
{/section}

{/let}

Paul Forsyth

Sunday 18 May 2003 1:54:49 am

Have you checked that the Anonymous user role allows you to view your new class? By default it doesn't allow this.

Paul

bs jeong

Monday 19 May 2003 6:41:03 am

Thank you Paul..

Yes....
Anonymous user role checked that the Anonymous user role allows read all class - content read *
Is my source code ok???
read change read all classHave you checked that the Anonymous user role allows you to view your new class? By default it doesn't allow this.

Paul Forsyth

Monday 19 May 2003 7:08:29 am

Not sure, your fetch line looks fine. Have you tried to look at the array produced to see if it contain anything using

{$children|attribute(show)}

It might be a problem with your line_view...

The other day I tried using a latest trunk version of ez3 and i had a similar issue in that my fetch simply wouldnt return any objects of my new class. Editing the roles gave me weird results and in the end i went back to using the stable branch. Not sure if this applies to you but thought id mention it.

Paul

Scot Wilcoxon

Monday 19 May 2003 11:46:03 am

Using |attribute(show) I see my Folder has an array, but no children. I suspect the Articles in my Folder are not children, therefore fetch(...parent_node_id) does not find them because without being children they can not have parents. I haven't found the definition of what is child of what, but you might look at your items for this.

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 10:41:12
Script start
Timing: Jan 18 2025 10:41:12
Module start 'layout'
Timing: Jan 18 2025 10:41:12
Module start 'content'
Timing: Jan 18 2025 10:41:13
Module end 'content'
Timing: Jan 18 2025 10:41:13
Script end

Main resources:

Total runtime0.9875 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0089 594.9453152.6094
Module start 'layout' 0.00890.0044 747.554739.4141
Module start 'content' 0.01330.9727 786.9688528.6406
Module end 'content' 0.98600.0014 1,315.609412.1875
Script end 0.9874  1,327.7969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.4122160.0003
Check MTime0.00160.1594160.0001
Mysql Total
Database connection0.00130.133910.0013
Mysqli_queries0.928894.0559650.0143
Looping result0.00070.0682630.0000
Template Total0.948896.120.4744
Template load0.00230.233820.0012
Template processing0.946495.843520.4732
Template load and register function0.00020.021610.0002
states
state_id_array0.00150.149410.0015
state_identifier_array0.00140.139520.0007
Override
Cache load0.00200.2015330.0001
Sytem overhead
Fetch class attribute can translate value0.00140.142530.0005
Fetch class attribute name0.00140.140050.0003
XML
Image XML parsing0.00030.035330.0001
class_abstraction
Instantiating content class attribute0.00000.002450.0000
General
dbfile0.00160.1586100.0002
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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/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: 20
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs