Copied to clipboard

Flag this post as spam?

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


  • Nicolai Sørensen 42 posts 66 karma points
    Aug 23, 2010 @ 11:27
    Nicolai Sørensen
    0

    Name of parent textpage

    I'm struggling a bit on finding a variable to write the title of the textpage the visitor is on.

    I have no problems in finding the current page with:

    <umbraco:Item Field="pageName" runat="server" />

    Is there a variable to show "textpage"-name in the folowing url:

    http://www.domain.com/textpage/subpage.aspx 
  • Matt Brailsford 2958 posts 15629 karma points MVP 7x c-trib
    Aug 23, 2010 @ 13:17
    Matt Brailsford
    0

    Hi Nicolai,

    You could do the following:

     <umbraco:item runat="server" field="parentID" xslt="umbraco.library:GetXmlNodeById({0})/@nodeName" />

    This will retreive the name of the current pages direct parent

    Matt

  • Nicolai Sørensen 42 posts 66 karma points
    Aug 23, 2010 @ 13:37
    Nicolai Sørensen
    0

    Ty Matt, that helped!

  • 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