billythekid / conditional-fields

Craft plugin to only use fields if certain conditions (other field values) match
MIT License
12 stars 1 forks source link

Instead of a field for conditions, use a HUD in the fieldLayoutdesigner. #6

Closed billythekid closed 2 years ago

billythekid commented 4 years ago

So this is actually how I started this before changing to the field type approach.

  1. Create some sort of HUD (look at Anubarak/craft-relabel plugin) in the fieldlayoutdesigner that'll give you a conditions builder based on the current fields in that fieldlayout (or perhaps just that tab)
  2. This can then be saved as a bahavior or something on the actual field.
  3. Profit!

No idea how to hook any of that up, the fieldlayoutdesigner javascript is a minefield. I hate javascript.