Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

PortalWebHosting
  Ads  
 


  Sponsors  

Meet Our Sponsors

Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
CrystalTech Web Hosting™
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Setting dnnTitle and BreadCrumbs programatically and other DNN programatic access?
Previous Previous
 
Next Next
New Post 5/6/2006 4:10 AM
User is offline Jack Beaudry
2 posts
10th Ranked


Setting dnnTitle and BreadCrumbs programatically and other DNN programatic access? 

I was hoping someone could point me in the right direction. I have parent and child pages with dynamic content and would like to programatically change the container title and breadcrumb info. Can I do this on page load? I'm not sure which DNN classes and properties to use or how to access them.

For example, lets say I have two pages, Class and Student. These pages aren't shown in the menu structure but are linked programmatically and passed their IDs on the querystring. So, in the class page I might show everything for a specific class including links to each student in the class. Those links go to a Student specific page where again the data is retrieved at runtime. Right now the breadcrumb might show Home > Class > Student. Where I would prefer Home > Econ 101 > Jane Doe.  In addition, in the container for the custom module that displays the Class info, I'd like the container title to be Econ 101, not something generic, and of course the same for the student module.

Is there a good resource that describes the DNN classes and properties available programatically? Maybe I've missed it but I couldn't find what I needed in the docs or the Wrox book.

Thanks in advance.

 
New Post 5/6/2006 5:58 AM
User is offline Jack Beaudry
2 posts
10th Ranked


Re: Setting dnnTitle and BreadCrumbs programatically and other DNN programatic access? 

I see that breadcrumbs uses TabName but setting TabName for PortalSettings.ActiveTab in Page_Load or PreRender doesn't affect the breadcrumb display.

I see the container uses DotNetNuke.Entities.Modules.PortalModuleBase.ModuleConfiguration.ModuleTitle. But setting that doesn't have the desired effect either. I must be missing something in the page life cycle.

 
New Post 5/11/2006 1:47 PM
User is offline Michael Flanakin
994 posts
www.michaelflanakin.com
7th Ranked




Re: Setting dnnTitle and BreadCrumbs programatically and other DNN programatic access? 
The problem is that by the time your module gets loaded and modifies those properties, they've already been rendered in the other controls. That's my guess, anyway. It sounds like you're trying to create a module that does what DNN does. I'm not sure what the impetus for your approach is, but I would stop working against DNN and work with it. Just use separate modules.

Michael Flanakin | Microsoft Consulting Services
www.michaelflanakin.com
 
New Post 5/11/2006 4:11 PM
User is offline cathal connolly
2757 posts
www.cathal.co.uk
5th Ranked










Re: Setting dnnTitle and BreadCrumbs programatically and other DNN programatic access? 

been a while since I did that, but from memory you need to put the code in page_init of your module.

Cathal

 
New Post 5/13/2006 9:00 AM
User is offline Leigh Pointer
469 posts
www.subzero-solutions.net
8th Ranked










Re: Setting dnnTitle and BreadCrumbs programatically and other DNN programatic access? 
 cathal wrote

been a while since I did that, but from memory you need to put the code in page_init of your module.

Cathal

This is correct, Page_Init is where you put the code.


Leigh Pointer
User Group Champion [World Wide]
» Evangelising DotNetNuke Everywhere «

Dutch DotNetNuke User GroupSubzero SolutionsSoftware Developer Network
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Setting dnnTitle and BreadCrumbs programatically and other DNN programatic access?
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Convert Visitors to Customers
In order to bring value to your users, we must first understand them. VIVIDSITES will help you build a custom web application and interactive marketing tools that your users will thank you for. We marry high-end creative with head banging technology to entertain and convert visitors into paying customers. Call 314.514.0505 or visit us at http://www.vividsites.com to find out how.
- V I V I D S I T E S -
Gearworx Web Hosting
As a premier provider of Web Hosting, Private/White Label hosting, Server Colocation, Dedicated Server, and other Managed Services, Gearworx offers an array of services designed to more effectively manage strategies driving businesses on the Web. Headquartered in Fremont, California our state of the art tier one data centers and distributed managed services environment enables Gearworx to offer your business enterprise level solutions through simplified processes.
Gearworx Web Hosting
Glanton: Enterprise Intranet Specialists Using DNN
Glanton Solutions are a premier provider of sevices for large corporates lloking to outsource Intranet sites.
www.glanton.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP