Author Topic

Sander van den Akker

Sunday 24 April 2011 1:01:17 pm

Comment67517

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 Exponential 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