Oct10Written by:slhilbert
10/10/2008 10:10 AM 
I needed to display the current page's title from within a module. I dug a bit but didn't see the exact code so I ended up working it out myself.
Here is the code I used;
lblPageOn.Text = DotNetNuke.Entities.Portals.PortalController.GetCurrentPortalSettings.ActiveTab.Title.ToString
Once you get to ActiveTab you can use intellisense in Visual Studio to get all sorts of information regarding the page.
2 comment(s) so far...
Re: Accessing the current page information in Dotnetnuke.
You could do a number of things. You could also get an instance of TabInfo using the TabController and the TabId from portalmodulebase
Or if you want the page's title you could get a reference to the CDefault class and get that information directly from me.Page By Chris Hammond on
10/10/2008 1:36 PM
|
Re: Accessing the current page information in Dotnetnuke.
Thanks for the additional info! Stuart By Stuart on
10/10/2008 1:38 PM
|