More in this section
Forums / Sitefinity SDK / How to get current page from widget designer

How to get current page from widget designer

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
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