More in this section

Forums / General Discussions / Current PageTitle

Current PageTitle

2 posts, 1 answered
  1. Matt
    Matt avatar
    56 posts
    20 Nov 2009
    02 Dec 2010
    Link to this post
    The Title is coming back blank on the current page node using this code:

    What I had to do is use the Key on the current node to reload the page node using the PageManager:
    new PageManager().GetPageNode(new Guid(SiteMapBase.GetCurrentProvider().CurrentNode.Key)).Title

    After that the title shows up.  Is there a better way to do this?


  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    01 Feb 2016
    02 Dec 2010
    Link to this post
    Hello Matt,

    Unfortunately this the only way to get it. You have to get the page node object which is associated with the sitemap node. Here is the same outcome with fluent api:
    string tittle = Telerik.Sitefinity.App.WorkWith().Page(Telerik.Sitefinity.Web.SiteMapBase.GetCurrentProvider().CurrentNode.Key).Get().Title;

    All the best,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 1 answered