let..section

Author Message

enigmista enigmista

Wednesday 03 September 2003 7:35:38 am

Hi in my pagelayout.tpl i have:

<!-- First block -->
{let children=fetch('content',list,hash(parent_node_id,110))}
{section name=Child loop=$children max=5}
<a href={concat("/content/view/full/",$Child:item.node_id)|ezurl}>{$Child:item.name}</a>
{/section}

<!-- Second block -->
{let children=fetch('content',list,hash(parent_node_id,122))}
{section name=Child loop=$children max=5}
<a href={concat("/content/view/full/",$Child:item.node_id)|ezurl}>{$Child:item.name}</a>
{/section}

Why in second block it display info in object 110 ? (the block first is the same of the second block)

Thanks

Paul Borgermans

Wednesday 03 September 2003 7:56:11 am

Where is the closing {/let}? it should be after the first block and again after the second block.

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

enigmista enigmista

Friday 05 September 2003 3:02:39 am

:P 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 31 2025 01:21:38
Script start
Timing: Jan 31 2025 01:21:38
Module start 'layout'
Timing: Jan 31 2025 01:21:38
Module start 'content'
Timing: Jan 31 2025 01:21:38
Module end 'content'
Timing: Jan 31 2025 01:21:38
Script end

Main resources:

Total runtime0.0242 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.0078151.1953
Module start 'layout' 0.00510.0046 739.2031220.6484
Module start 'content' 0.00970.0132 959.8516997.7500
Module end 'content' 0.02290.0012 1,957.601629.9922
Script end 0.0241  1,987.5938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002711.1146140.0002
Check MTime0.00114.6286140.0001
Mysql Total
Database connection0.00072.893610.0007
Mysqli_queries0.003012.411430.0010
Looping result0.00000.086810.0000
Template Total0.00093.610.0009
Template load0.00072.967610.0007
Template processing0.00020.658310.0002
Override
Cache load0.00052.007410.0005
General
dbfile0.00020.970180.0000
String conversion0.00000.041540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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