eZ Community » Forums » Developer » What single colon operator means in...
expandshrink

What single colon operator means in ezpublish template?

What single colon operator means in ezpublish template?

Monday 18 April 2016 10:36:17 am - 2 replies

I see code like this in register.tpl

{$UnvalidatedAttributes:item.name}
What is meant by it?

Modified on Monday 18 April 2016 10:42:52 am by akhtar zaman

Monday 18 April 2016 5:47:19 pm

That is in a "section" loop, right?

Thus, "{$UnvalidatedAttributes:item.name}" is the current item in the loop, as if you did:

{foreach $UnvalidatedAttributes as $UnvalidatedAttribute}
{$UnvalidatedAttribute.name}
{/foreach}

Modified on Monday 18 April 2016 5:48:01 pm by Peter Keung

Tuesday 19 April 2016 6:40:10 am

Thanks. Now i can understand how it is working. It helped me a lot. I was looking for docs about this. But seems documents regarding section control variable in template is no longer available.

 

https://doc.ez.no/eZ-Publish/Tech...ontrol-structures/Deprecated/section

http://ez.no/products/ez_publish/...e_functions%2Fprogram_flow%2Fsection

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from