when i refresh the page, this code does'nt work. ...

Author Message

Coulibaly Ibrahim

Monday 29 May 2006 1:38:43 am

Hello.
Someone knows the failure?
the first access to the page give the result I was especting.
this is he code:

{def cle_section=$DesignKey:section}

<div class="connect_link">
  {include uri="design:link_connect_user.tpl"}
</div>
{def $ma_section=fetch('section', 'object', hash('section_id', $DesignKeys:used.section))}
  {if $ma_section.name|contains('diath')}
      {section loop=fetch(content, list, hash(parent_node_id, $node.node_id,
                                            class_filter_type, "include",
                                            class_filter_array, array('folder'),
                                            )
                      )
      }
          <p align="left">&nbsp;&nbsp;<a href={$:item.url_alias|ezurl}>{$:item.name}</a></p>
      {/section}
  {elseif $ma_section.name|contains('ili')}
  {else}
    {$ma_section.name}
  {/if}
{undef}

i just want to get differents type of children according to the "used/visited section".

the code in in <b>link_connect_user.tpl</b> is just an override of login.tpl

please help :-/

Marcin Drozd

Monday 29 May 2006 4:45:21 am

Hi Ibrahim
I think you should use

{def $cle_section=$DesignKey:section}

(missing <b>$</b>)
and

{section loop=fetch(content, list, hash(parent_node_id, $node.node_id,
                                           class_filter_type, 'include',
                                           class_filter_array, array('folder')
                                           ) ) }

(one coma too much)
:)

http://ez-publish.pl

Coulibaly Ibrahim

Monday 29 May 2006 5:50:21 am

thx, i'll just try it.
thx.

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

Main resources:

Total runtime0.7832 sec
Peak memory usage8,192.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 588.2578151.2266
Module start 'layout' 0.00640.0039 739.4844220.7188
Module start 'content' 0.01020.7722 960.20314,305.3828
Module end 'content' 0.78250.0007 5,265.585911.8125
Script end 0.7832  5,277.3984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4099160.0002
Check MTime0.00120.1526160.0001
Mysql Total
Database connection0.00140.172610.0014
Mysqli_queries0.704289.9104570.0124
Looping result0.00060.0704550.0000
Template Total0.731693.420.3658
Template load0.00160.200820.0008
Template processing0.730093.205320.3650
Template load and register function0.00140.184010.0014
states
state_id_array0.00170.216710.0017
state_identifier_array0.00190.236720.0009
Override
Cache load0.00130.1661230.0001
Sytem overhead
Fetch class attribute can translate value0.00180.228520.0009
Fetch class attribute name0.00240.307130.0008
XML
Image XML parsing0.00020.029720.0001
class_abstraction
Instantiating content class attribute0.00000.001430.0000
General
dbfile0.00100.1264100.0001
String conversion0.00000.000940.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
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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/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: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs