How to create a conditions for the Umbraco 12 prop...
# help-with-umbraco
y
here I am trying to make condition, if the user select to create a news and it was normal so I want to make the Specials section can not selected, and if the news is Spiacial I want to make the Normal sections not able to select .. ? https://cdn.discordapp.com/attachments/1159902630731063386/1159902630852690020/Screenshot_2023-10-06_201525.png?ex=6532b681&is=65204181&hm=a98f5c30d91952d93449c21e4af8db4df4ae570504f7a2f5c270e76a47c90a73&
a
Hi @Yasein H. Burqan ! It's not there by default, in the past I've used a package like https://our.umbraco.com/packages/backoffice-extensions/conditional-displayers/ but thats not available for v12. What you could do, is make use of the BlockList editor where you allow the Normal News and the Special News. But you set the max amount of Blocks to 1. So the content editor is forced to pick one of them 🙂 Think it should suit your needs?
r
@Yasein H. Burqan i think @Ambert 's way may be the better solution .. You can have a Block list and then various block type one for news and one for specials and then based on your rules select the right blocks.. but it really comes down to how you want your editors to work in the backoffice
a
Make it as easy as possible for them 😄
r
goes with out saying .. but what is easy? and it can be taught , and learned clear labelling and naming of blocks etc
y
it work, thank you guys
6 Views