Oct 13, 2011 at 4:33 PM
Edited Oct 13, 2011 at 5:25 PM
It gave me some ideas...
I thought to hide individual widgets I could go directly to the widget and add some code in the widget's ascx file.
Eg. If I want to hide the search box on a particular page then in Widgets/Search/widget.ascx.cs I can do this:
var url = Request.Url.ToString();
Visible = false;
Visible = true;
and I thought that should work, but when it didn't, I realized the URL actually contains the pageid instead like:
So what I'm wondering is where the page name resolution function is in BE? So I can hide/show a widget based off the actual name of the page, and not the id.
Do you know what the method used is to get the page name?