Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Is there any way to allow the selection of content available in an xml list, selected by XPath, to be chosen via a picker in the parent?
So my tree structure would be like:
+- FOLDER (doc prop: pickFolder < allows selection of a meta folder folder)
+-- PAGE (doc prop: selector <- list of item1-3 from the meta folder selected above)
+- META FOLDER
+-- ANOTHER FOLDER (this one is picked above)
I think this is possible using xpath in a mntp, as long as you aren't expecting a multi-node tree picker to have multiple starting nodes.
So the mntp located within PAGE called selector would need an xpath similar to
Hope this helps
The man's a genius!
I was trying to think how you'd inflate the XML using some kind of library call, but that is so simple, can't wait to try it.
I just tried this (saw on twitter that you're using nuPickers) - I created this structure:
Then I created the pickFolder property as an XML Prefetch List with this XPath:
I created the selector property, also as an XML Prefetch List, with this XPath:
$ancestorOrSelf/ancestor::HOME_ALIAS//*[@id = $ancestorOrSelf/ancestor-or-self::FOLDER_ALIAS/pickFolder//@Key]/ITEM_ALIAS
(XPaths get a little muddy when you have to use the $ancestorOrSelf token first to be sure you have a published node to base the rest upon).
Let me know if you need me to explain what's going on, or if I've misunderstood anything.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted