Forums / Setup & design / "Unknown template variable" ¿?

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

"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