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>

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Nov 22, 2013 @ 11:05
    Tim Geyssens
    0

    Cool glad it's sorted :)

  • 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.

Please Sign in or register to post replies