Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Setting dnnTitle and BreadCrumbs programatically and other DNN programatic access?Setting dnnTitle and BreadCrumbs programatically and other DNN programatic access?
Previous
 
Next
New Post
5/6/2006 6:10 AM
 

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 7:58 AM
 

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 3:47 PM
 
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 6:11 PM
 

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

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
5/13/2006 11:00 AM
 
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 «

Nederlandstalige DotNetNuke Gebruikersgroep Subzero Solutions ARC for DotNetNuke Design is the craft of visualising concrete solutions that serve human needs and goals within certain contraints. Visulising concrete solutions is the essence of design.
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Setting dnnTitle and BreadCrumbs programatically and other DNN programatic access?Setting dnnTitle and BreadCrumbs programatically and other DNN programatic access?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out