bug or feature ?? -- eztemplate: operators do not process section indices

Author Message

Volker Lenz

Wednesday 05 February 2003 1:26:05 pm

I tried this:

{section name=Path loop=$module_result.path}
{section-exclude match=$Path:index|eq(0)}
{section-exclude match=$Path:item.text|eq('Hidden_Folder_A')}
{section-exclude match=$Path:item.text|eq('Hidden_Folder_B')}
... some template-html printing the path ...
{/section}

Everything works as expected, as long as there is not the critical line 2

{section-exclude match=$Path:index|eq(0)}

which crashes the template-parser without debug infos.

No better outcome if I try with the section's default "number"-variable instead of using "index" in order to prevent the first item in loop-array from being processed in my template:

{section-exclude match=$Path:number|eq(1)}

So I ask myself if default $NameSpace-variables other than $item:xxx are allowed as valid input for template operators at all?

Can anybody comment on this ?

Thanks

Volker

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