How to get current page from widget designer

Posted by Community Admin on 05-Aug-2018 10:23

How to get current page from widget designer

All Replies

Posted by Community Admin on 28-Apr-2011 00:00

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.

Posted by Community Admin on 29-Apr-2011 00:00
Posted by Community Admin on 13-Feb-2014 00:00

How did you do this in the end?

This thread is closed