"Unknown template variable" ¿?

Author Message

Cristian G. L.

Monday 31 May 2004 7:34:19 am

Hi!
I have problems with the following code:

<h3>
	Archivo de noticias:
</h3>
<table cellspacing="1">
{let meses=array( Enero, Febrero, Marzo, Abril, Mayo, Junio, Julio, Agosto, Septiembre, Octubre, Noviembre, Diciembre ) }
{section name=mes loop=$meses}
{let arrayNoticias=fetch(content, list, hash(parent_node_id, 53,
					 sort_by, array( published, false() ),
					 attribute_filter, array( array( published, >=,
									 maketime(0,0,0,5,1,2004) ),
								  array( published, <,
									 maketime(0,0,0,6,1,2004) ) ) ) ) } 
	<tr id="filaCabecera">
		<td>MES: {$mes:item}</td>
	</tr>
	{section name=noticia loop=$arrayNoticias}
		{sequence name=parImpar loop=array("FilaImpar","FilaPar")}
		<tr id="{$parImpar:item}">
			<td>{node_view_gui view=line content_node=$noticia:item}</td>
		</tr>
		{sequence name=parImpar}	
	{/section}
	{/let}
	{/section}
{/let}
</table>

I get the same error repeated 12 times:

Unknown template variable 'arrayNoticias' in namespace ''

This fails in line 16 ("{section name=noticia loop=$arrayNoticias}").

What is wrong in the code? Are correctly the {let} tags?

Thanks in advance,

Cristian

Cristian G. L.

Monday 31 May 2004 8:31:17 am

Hi

I maked this changes:

{section name=noticia loop=$mes:arrayNoticias}
{node_view_gui view=line content_node=$mes:noticia:item}

Now i have no errors, but it don't shows the feched nodes (the fetch function is ok, i tested it separatly)

I think it is a namespace related problem, but i can't solve it.

Bye

Cristian

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