I'm trying to create a prevalue source which populates a drop down from a list of child nodes.
In the contour prevalue screen, I currently have the root node and document type options selected, which is working, but the drop down is populated with all pages, regardless of the published state.
I understand if I use the XPath option, only published pages will be included, I have used the Xpath evaluator plugin to test the query which returns the expected results, but I cannot get any items to appear when using any Xpath query in the contour field.
Can someone give me an example of an xpath query to fetch a node by id and use its children in a prevalue source in this way.
I found the solution, I did not have the appropriate type selected. I had chosen "Umbraco Documents" which was left over from when I selected the node manually, I needed to choose the "Umbraco Docs from xpath" type.
Contour prevalue xpath
I'm trying to create a prevalue source which populates a drop down from a list of child nodes.
In the contour prevalue screen, I currently have the root node and document type options selected, which is working, but the drop down is populated with all pages, regardless of the published state.
I understand if I use the XPath option, only published pages will be included, I have used the Xpath evaluator plugin to test the query which returns the expected results, but I cannot get any items to appear when using any Xpath query in the contour field.
Can someone give me an example of an xpath query to fetch a node by id and use its children in a prevalue source in this way.
Thanks
I found the solution, I did not have the appropriate type selected. I had chosen "Umbraco Documents" which was left over from when I selected the node manually, I needed to choose the "Umbraco Docs from xpath" type.
<sigh>
Comment author was deleted
Cool glad it's sorted :)
is working on a reply...