Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tom Pipe 14 posts 100 karma points c-trib
    Nov 19, 2013 @ 00:27
    Tom Pipe
    0

    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

  • Tom Pipe 14 posts 100 karma points c-trib
    Nov 21, 2013 @ 00:07
    Tom Pipe
    0

    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

    Nov 22, 2013 @ 11:05

    Cool glad it's sorted :)

Please Sign in or register to post replies

Write your reply to:

Draft