Shop has a property called productList and Product has a property called shopList. Both shopList and productList would be multi pickers of some sort.
Does anybody know if it is possible to set things up so that if in the Shop1 content node, I select Product1 in the productList, when I view the Product1 node, I would see that Shop1 had been added to the shopList property automatically.
Also if I delete Shop1 from shopList on the Product1 node, then Product1 is removed from productList on the Shop1 node.
Not sure how old the page is but it will give you an idea. You
Need to drop in to the save event of your node, through the API, get your other node. Set the property and then save and publish :). Charlie.
You could look at using multipickers from nuPickers and configuring them to use the "Relations Only" save format (so for example, any change to a productList on a shop will be instantly reflected in the shopList list for any changed products)
Related Content Pickers
Hi all
Using U7.3
I have a requirement for a number of related categories in a website. The following is a simplified example of the Content tree.
There is a Shop doctype and a Product doctype.
Shop has a property called
productList
and Product has a property calledshopList
. BothshopList
andproductList
would be multi pickers of some sort.Does anybody know if it is possible to set things up so that if in the Shop1 content node, I select Product1 in the
productList
, when I view the Product1 node, I would see that Shop1 had been added to theshopList
property automatically.Also if I delete Shop1 from
shopList
on the Product1 node, then Product1 is removed fromproductList
on the Shop1 node.J
https://our.umbraco.org/wiki/reference/api-cheatsheet/using-applicationbase-to-register-events/event-examples
Not sure how old the page is but it will give you an idea. You Need to drop in to the save event of your node, through the API, get your other node. Set the property and then save and publish :). Charlie.
Hi Jules,
You could look at using multipickers from nuPickers and configuring them to use the "Relations Only" save format (so for example, any change to a productList on a shop will be instantly reflected in the shopList list for any changed products)
HTH, Hendy
Thanks Hendy, I will take a look at that as well :)
Thanks for the tip Hendy. Will have a look.
Jules
is working on a reply...