What did I do wrong here??? Can't describe the problem...

What did I do wrong here??? Can't describe the problem...

Friday 28 May 2004 9:36:29 am - 2 replies

Author Message

Paul Borgermans

Friday 28 May 2004 1:18:32 pm

Hi

You can not use set to change variables outside the current namespace, but set-block can, see:

http://ez.no/ez_publish/documentation/reference/template_functions/variables/set_block

Although i do not see the purpose of your code sample, this should do what you want:

{default sublist=10 list=array()}
{set list=fetch('content',
				'list',
				hash('parent_node_id', 2)
				)}
{section name=bit loop=$list}
{set-block scope=root variable=sublist}
{fetch(	'content',
					'list_count',
					hash('parent_node_id', 2)
					)}
{/set-block}
{$sublist}{* <b><--- no problem here anymore i think </b>  *}
{/section}
{/default}

Have a nice weekend

-paul

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

Aya Brea

Friday 28 May 2004 9:03:17 pm

This work :D

Thanks a lot Paul...

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.