Share » Forums » Developer » test if attribute is set

test if attribute is set

test if attribute is set

Friday 09 January 2004 4:13:34 pm - 2 replies

Author Message

Lauren Matheson

Wednesday 14 January 2004 5:38:05 pm

my solution is: ... Wrong

{section show=$MinGroup:item.data_map|contains('link')}
will not work because we need to test against the keys of data_map, not the values. Back to the drawing board.

Lauren Matheson

Thursday 15 January 2004 6:38:29 am

Here is a solution that actually works. Apply the patch to add a keys operator, then use:

{section show=$MinGroup:item.data_map|keys|contains(link)}

The patch is filed in bug report:
http://ez.no/developer/ez_publish_3/bug_reports/keys_array_operator_patch_attached

Because alignment is not preserved when text is posted to the bug system, you will have to cut and paste the patch into your ezpublish implementation.

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

36 542 Users on board!

Forums menu