Create Data Type with data source as property of another node
Is it possible to set a dropdown list's prevalues to a parent node's property? For example,
Products Model - Contains a MNTP of available categories Product - Contains Dropdown that points to the MTNP as data source
Is there a way to do this with xpath or a different datatype that I should use? Perhaps I am just not thinking of this in the right way, is there a better way to go about doing something like this?
Yes, if you're using Umbraco 7, you can do this with the Xml DropDown Picker in nuPickers, it can walk up the tree from the current node and parse the full Xml document (including properties) - just need to ensure that the picker on Model (to select categories) saves as Xml (again any nuPicker can do this).
Thanks for the response and the package, I can see myself using this a lot in the future. I'm using Umbraco 7, and this is exactly what I need, but it doesnt look like there is a way to change the multinode tree picker to an xml format as you could in the past versions of Umbraco :( unless I completely overlooked it. In the end it is only a UI issue(build too long of a list), but I was able to get this working with the nuPicker xml checkbox (model) saving as xml which gets read by the xml dropdown in a child node(product). Do you know offhand if there is a way to revert / change preference for the built in multinode picker to save as xml? Ive been digging around and all I can find is old articles
Again, thank you so much for the package it has a lot of awesome data types. If you can offer me any more advice on the multinode tree picker I would appreciate it, but you have certainly given me a way to solve the issue.
I don't think you can change the MNTP save format in v7. If there's a large number of items to pick from, would the PrefetchList picker with a set height be of any use ?
Create Data Type with data source as property of another node
Is it possible to set a dropdown list's prevalues to a parent node's property? For example,
Products
Model - Contains a MNTP of available categories
Product - Contains Dropdown that points to the MTNP as data source
Is there a way to do this with xpath or a different datatype that I should use? Perhaps I am just not thinking of this in the right way, is there a better way to go about doing something like this?
Hi Daniel,
Yes, if you're using Umbraco 7, you can do this with the Xml DropDown Picker in nuPickers, it can walk up the tree from the current node and parse the full Xml document (including properties) - just need to ensure that the picker on Model (to select categories) saves as Xml (again any nuPicker can do this).
HTH,
Hendy
Hi Hendy,
Thanks for the response and the package, I can see myself using this a lot in the future. I'm using Umbraco 7, and this is exactly what I need, but it doesnt look like there is a way to change the multinode tree picker to an xml format as you could in the past versions of Umbraco :( unless I completely overlooked it. In the end it is only a UI issue(build too long of a list), but I was able to get this working with the nuPicker xml checkbox (model) saving as xml which gets read by the xml dropdown in a child node(product). Do you know offhand if there is a way to revert / change preference for the built in multinode picker to save as xml? Ive been digging around and all I can find is old articles
Again, thank you so much for the package it has a lot of awesome data types. If you can offer me any more advice on the multinode tree picker I would appreciate it, but you have certainly given me a way to solve the issue.
- Dan
Hi Daniel,
I don't think you can change the MNTP save format in v7. If there's a large number of items to pick from, would the PrefetchList picker with a set height be of any use ?
Hendy
Just an idea... what about transforming the MNTP save data with a save event ?
I'm sure I can work with one of those. Thanks for all the help!
This will not work until the node is published.. how would I get the nodes (pre publish) using IDotNetDataSource?
Hi Daniel, how do you mean ?
is working on a reply...