How to get current page from widget designer - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

How to get current page from widget designer

  • How to get current page from widget designer
  • 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.
  • ahh i found solution here www.sitefinity.com/.../how-to-get-current-page-title.aspx

  • How did you do this in the end?