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:
HOME
+- 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)
+---- ITEM1
+---- ITEM2
+---- ITEM3
Hey John,
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
$root/*[id=./pickFolder/text()]
Hope this helps
Jonathan
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.
Hi John,
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:
pickFolder
$ancestorOrSelf/ancestor::HOME_ALIAS/META_FOLDER_ALIAS/ANOTHER_FOLDER_ALIAS
I created the selector property, also as an XML Prefetch List, with this XPath:
selector
$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).
$ancestorOrSelf
Let me know if you need me to explain what's going on, or if I've misunderstood anything.
/Chriztian
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Using A Parent Picker with XML / Content Picker
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:
HOME
+- 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)
+---- ITEM1
+---- ITEM2
+---- ITEM3
Hey John,
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
Jonathan
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.
Hi John,
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:$ancestorOrSelf/ancestor::HOME_ALIAS/META_FOLDER_ALIAS/ANOTHER_FOLDER_ALIAS
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.
/Chriztian
is working on a reply...