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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...How to programmically change Container SkinHow to programmically change Container Skin
Previous
 
Next
New Post
8/31/2006 5:36 PM
 
i'm having a problem programmically changing a container for a module.  i don't want to put the containersrc in a cookie or add to the querystring. 

i first thought i could update the module moduleinfo.containerpath and moduleinfo.containersrc but that didn't work.  i then tried updating the "PortalSettings" application context like a skin but that didn't work either.  in fact i got an error:

DotNetNuke.Services.Exceptions.ModuleLoadException: Unhandled Error Adding Module to TopPane ---> System.Exception: Exception of type 'System.Exception' was thrown. at DotNetNuke.UI.Skins.Skin.LoadContainer(String ContainerPath, Control objPane) at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) --- End of inner exception stack trace

i know this error is coming from the skin.vb but i'm having troubles getting the debugger working on the source.

note: i do not have these containers in the skininfo.rootcontainer path.

does anyone know how to programmically change a container for a module?

 
New Post
8/31/2006 5:44 PM
 

 

You would have to do it before the Skin Injects the module into the page, and you can't get to that programatically at that time in the page event cycle.

One way to do it would be to code a "smart" container that used some other techinique to decide what actual container to use.

 


DotNetNuke Modules from Snapsis.com
 
New Post
8/31/2006 5:48 PM
 
cool idea -- thx

 
New Post
8/31/2006 5:51 PM
 
i'm currently using an httpmodule to update the "PortalSettings" to change skins.  i can't do that same with a container?  why not?

 
New Post
8/31/2006 6:19 PM
 

 

You might be able to do it with an HTTPModule, but you will have to get to the module in question before page_init  where it get's injected into the page.


DotNetNuke Modules from Snapsis.com
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...How to programmically change Container SkinHow to programmically change Container Skin


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