Copied to clipboard

Flag this post as spam?

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


  • Scott Leslie 28 posts 143 karma points
    Mar 11, 2014 @ 17:58
    Scott Leslie
    0

    Xpath templatable list question (filter on based on current node?)

    Umbraco v6.1.6
    Content Tree

    Section 1
    -Topic1
    -Topic2
    -Topic3
    Section 2
    -Topic4
    -Topic5
    Section 3
    -Topic6
    -Topic7

     

    Have created a Xpath templatable list and have a XPath filter.
    Can get it to only show types of 'Topic'. The datatype is used on Section Document Type.

    So currently the picker displays ALL the topics.
    Is there an XPath expression to display on the Topics that are children of the Section?


    Thanks

  • Hendy Racher 863 posts 3849 karma points MVP 2x admin c-trib
    Mar 11, 2014 @ 18:29
    Hendy Racher
    100

    Hi Scott,

    Yes, you can include the $currentPage token in the XPath - so something like:

    $currentPage/child::Topic

    HTH,

    Hendy

Please Sign in or register to post replies

Write your reply to:

Draft