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 3700 posts 19473 karma points MVP 9x 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!

Please Sign in or register to post replies

Write your reply to:

Draft