:: Professional ::
 
You are here: Blog
 

Hilbert Solutions, LLC Latest Dotnetnuke Modules...

Advanced News Ticker        Constant Contact Sign Up

 

Blog
Oct10

Written by:slhilbert
10/10/2008 10:10 AM RssIcon

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

Your name:
Gravatar Preview
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Security Code
Enter the code shown above in the box below
Add Comment  Cancel 
Search Blog
Blog Archive
Terms Of Use| Privacy Statement Hilbert Solutions, LLC Since 2007