Copied to clipboard

Flag this post as spam?

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


  • Mark 5 posts 25 karma points
    Sep 17, 2009 @ 15:58
    Mark
    0

    umbraco:item inline xslt to get parent property

    Wondering why the following doesn't work?

    <umbraco:Item runat="server" field="PageTitle" xslt="$currentPage/parent::node/data [@alias='{0}']" />

    Where PageTitle is a text string property in the page node. Ok in macro. Maybe inline xslt doesn't like $currentPage?

    Mark

  • Chris Koiak 700 posts 2626 karma points
    Sep 17, 2009 @ 20:24
    Chris Koiak
    0

    To be honest I don't use inline xslt... but try

     <umbraco:Item runat="server" field="PageTitle" xslt="$currentPage/ancestor-or-self::node/data [@alias='{0}']" />

    or

    <umbraco:Item runat="server" field="PageTitle" xslt="//ancestor-or-self::node/data [@alias='{0}']" />
  • 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