Folderlist

Author Message

Kjell Inge Sandvik

Thursday 28 April 2005 2:37:30 pm

Hello forum!

I have made a folder with some links I wish to display, but nothing shows up! What is wrong with the code?

{let lenker=fetch('content','list', hash(parent_node_id,2))}
{section loop=lenker}
{$lenker.name}
{/section}

Sandvik Web & Data

Ɓukasz Serwatka

Friday 29 April 2005 5:15:23 am

Hi Kjell,

In your code is missing with $ near to lenker, you also can`t display name of object in section using variable name which store fetched nodes.

This is corrected code

{let lenker=fetch( 'content', 'list', hash( parent_node_id, 2 ) )}
{section var=child loop=$lenker}
    {$child.name}
{/section}
{/let}

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 22:20:29
Script start
Timing: Jan 18 2025 22:20:29
Module start 'layout'
Timing: Jan 18 2025 22:20:29
Module start 'content'
Timing: Jan 18 2025 22:20:29
Module end 'content'
Timing: Jan 18 2025 22:20:29
Script end

Main resources:

Total runtime0.6010 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 587.7891152.6094
Module start 'layout' 0.00630.0037 740.398439.3984
Module start 'content' 0.01010.5895 779.7969531.7188
Module end 'content' 0.59950.0014 1,311.51568.2031
Script end 0.6010  1,319.7188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.5698160.0002
Check MTime0.00140.2386160.0001
Mysql Total
Database connection0.00080.138810.0008
Mysqli_queries0.555192.3562540.0103
Looping result0.00050.0841520.0000
Template Total0.570594.920.2853
Template load0.00210.350720.0011
Template processing0.568494.570520.2842
Template load and register function0.00010.016010.0001
states
state_id_array0.00120.192810.0012
state_identifier_array0.00120.201220.0006
Override
Cache load0.00170.2893130.0001
Sytem overhead
Fetch class attribute can translate value0.00090.146720.0004
Fetch class attribute name0.00100.172640.0003
XML
Image XML parsing0.00100.168920.0005
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00100.1681240.0000
String conversion0.00000.001640.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
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/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: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs