This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Install & configuration » bug or feature ?? -- eztemplate:...
expandshrink

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

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

Wednesday 05 February 2003 10: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

No reply yet!

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from