Two-Way of Synchronization between multinode treepicker and other property
Hi,
I want to know if there is an option or a plugin which helps me to do the following:
I have a multinode treepicker for urgent news where you can add any urgent news in it . but what I need is to give another way to set a news as urgent, it's like when you open a news node you will find a checkbox property so you can check it if it's an urgent.
OK the needed here is whenever you check a node as urgent, it will be automatically added to that multinode treepicker and vice versa , when you add a node to the multinode treepicker, that checkbox property should be checked.
Anyone have an idea to do that?
one of the current solution is to use Umbraco Events. but please tell me if there is another way.
Just remember that the Relation API would hit the database so you might need to create some cacheing around this, I just use the runtime cache in Umbraco and invalidate it using the ContentService.OnPublished-event.
Two-Way of Synchronization between multinode treepicker and other property
Hi,
I want to know if there is an option or a plugin which helps me to do the following:
I have a multinode treepicker for urgent news where you can add any urgent news in it . but what I need is to give another way to set a news as urgent, it's like when you open a news node you will find a checkbox property so you can check it if it's an urgent.
OK the needed here is whenever you check a node as urgent, it will be automatically added to that multinode treepicker and vice versa , when you add a node to the multinode treepicker, that checkbox property should be checked.
Anyone have an idea to do that?
one of the current solution is to use Umbraco Events. but please tell me if there is another way.
Thanks
Hi Saif!
You might be able to consider a "relation" between them using the Umbraco Relations API and maybe this picker:
https://our.umbraco.com/packages/backoffice-extensions/relations-picker/
I've used "nuPickers" for this on one site as well:
https://our.umbraco.com/packages/backoffice-extensions/nupickers/
Docs: https://github.com/uComponents/nuPickers/wiki/Relation-Mapping
Just remember that the Relation API would hit the database so you might need to create some cacheing around this, I just use the runtime cache in Umbraco and invalidate it using the ContentService.OnPublished-event.
https://our.umbraco.com/documentation/reference/cache/updating-cache
Hope this helps!
Cheers!
Hi Markus!
Referring to the links you mentioned above. these packages are not supported in Umbraco8. Do you have for Umbraco8?
or, is there any article that shows how to that issue using the Relation API directly?
Thanks
Hi Ahmed!
I did not realize that you needed this for Umbraco V8. Not sure about the state (if any) for nuPickers for Umbraco 8.
// m
is working on a reply...