Hello members of the friendliest community on the web!
I've been learning Umbraco for about 3 months. Currently, I'm something stuck with achieving dependency between two properties in the same document type. I want a MNTP just loading the children of a previously selected node (parent) in another MNTP. I'm currently using Umbraco version 8.6.1. I have followed exactly what is indicated in this article, but I haven't been able to make it work.
In Content section, you can suppose my structure is:
For example, if A is selected in the first MNTP, then the second MNTP should show me A1 and A2 (to choose between them), but it doesn't happen like that and it shows the entire content tree.
If I hardcoded the id of one of the nodes, for example:
Cascading/Dependent MNTPs
Hello members of the friendliest community on the web!
I've been learning Umbraco for about 3 months. Currently, I'm something stuck with achieving dependency between two properties in the same document type. I want a MNTP just loading the children of a previously selected node (parent) in another MNTP. I'm currently using Umbraco version 8.6.1. I have followed exactly what is indicated in this article, but I haven't been able to make it work.
In Content section, you can suppose my structure is:
In the first MNTP (with alias: pickerSchool) my xpath expression would be something like:
Allow items of type = school
Which allows me to select A or B.
According to the aforementioned blogpost, in the second MNTP (with alias: pickerSubSchool) my xpath expression would be something like:
For example, if A is selected in the first MNTP, then the second MNTP should show me A1 and A2 (to choose between them), but it doesn't happen like that and it shows the entire content tree.
If I hardcoded the id of one of the nodes, for example:
then, it correctly shows A1 and A2 to select.
Obviously, the desired solution should be dynamic (not hardcoded).
Thank you in advance for any help or guidance you can give me on this issue.
Regards, Dovier
Hi!
Please, any possible solutions or ideas for this?
Thanks in advance.
Dovier
Is it possibly related to this? https://our.umbraco.com/forum/using-umbraco-and-getting-started/98882-umbraco-8-and-document-picker-with-xpath
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.