+1-888-365-2779
Try Now
More in this section

Forums / Sitefinity SDK / How to get current page from widget designer

How to get current page from widget designer

3 posts, 0 answered
  1. Augus
    Augus avatar
    34 posts
    Registered:
    29 Mar 2011
    28 Apr 2011
    Link to this post
    hello, i'm trying to make a simple widget it's a page title widget but in widget designer, user can choose to override the page title with the parent page title. so i'm make a drop down list in designer and tried to populate it with parent page. and it will return the page Guid.

    i have tried using this
    SiteMapNode currentNode = SiteMap.CurrentNode

    and also this

    var actualNode = SiteMapBase.GetActualCurrentNode();

    but they all null. any suggestion how can i achieve this? some code snippet would be good.

    Thank you.
  2. Augus
    Augus avatar
    34 posts
    Registered:
    29 Mar 2011
    29 Apr 2011
    Link to this post
    ahh i found solution here http://www.sitefinity.com/devnet/forums/sitefinity-4-x/general-discussions/how-to-get-current-page-title.aspx

  3. Kurren
    Kurren avatar
    23 posts
    Registered:
    08 Jun 2013
    13 Feb 2014
    Link to this post
    How did you do this in the end?
3 posts, 0 answered