Developer forum

Forum » CMS - Standard features » Item field groups conditionals - add "Contains" as an operator!

Item field groups conditionals - add "Contains" as an operator!

Jacob Storgaard Jensen
Reply

Hi guys,

One thing that has annoyed me for a while, is that I find myself doing stupid implementations when doing conditionals on Item field groups.

Let's say I have a radio button list, where the website editor is supposed to choose a layout for the rendering of the item. There is 5 options available, but only on the 2 of these I want to show some extra settings (an item field group with x item fields).
As it is now, that isn't possible because I only have IS or IS NOT available as operators...

If an extra operator like CONTAINS were added, I could change my values to include a text to check on ie. "showextras" as my example below shows:
Option 1: "top-right showextras"
Option 2: "top-left showextras"
Option 3: "bottom-left"
Option 4: "bottom-right"
Option 5: "center"

The extra value "showextras" could easily be removed in templates if needed.

When thinking of it NOT CONTAINS would be very useful too!

Is there a very good reason not to have this operator? Nicolai?

 


Replies

 

You must be logged in to post in the forum