Share » Forums » Developer » Group organisation objects by...

Group organisation objects by selection value

Group organisation objects by selection value

Friday 22 April 2011 4:09:04 pm - 1 reply

Author Message

Sander van den Akker

Sunday 24 April 2011 1:01:17 pm

You don't need "def $organisation_ids=array()", but only "$orrganisation_ids=$node.data_map.organisation_type.content", You can't define the same variable name twice, see the docs: http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Template-functions/Variables/def and you don't need to tell ez publish it is an array, it already knows.

Then, the if-statement should be "if $organisation_ids|contains ($option.id)"

That should work!

eZ Publish certified developer
http://auth.ez.no/certification/verify/392313

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

36 542 Users on board!

Forums menu