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

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.