Forums / Developer / Can't display nodes ---

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.

eZ debug

Timing: Jan 18 2025 04:09:05
Script start
Timing: Jan 18 2025 04:09:05
Module start 'content'
Timing: Jan 18 2025 04:09:05
Module end 'content'
Timing: Jan 18 2025 04:09:06
Script end

Main resources:

Total runtime0.1502 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 588.7266180.8438
Module start 'content' 0.00650.0039 769.570397.7266
Module end 'content' 0.01040.1397 867.2969527.2500
Script end 0.1501  1,394.5469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00342.2573200.0002
Check MTime0.00130.8844200.0001
Mysql Total
Database connection0.00080.499410.0008
Mysqli_queries0.108972.50951410.0008
Looping result0.00130.86301390.0000
Template Total0.139392.710.1393
Template load0.00070.497310.0007
Template processing0.138592.237210.1385
Override
Cache load0.00050.344310.0005
Sytem overhead
Fetch class attribute can translate value0.00070.484810.0007
XML
Image XML parsing0.00030.182410.0003
General
dbfile0.00231.5109200.0001
String conversion0.00000.003330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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