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

HomeHomeDevelopment and...Development and...Getting StartedGetting StartedSimple module - control using incorrect skin.Simple module - control using incorrect skin.
Previous
 
Next
New Post
5/27/2010 12:40 PM
 
Hi.

Developing on DNN version 04.09.03 as this is what the client has and wants to keep due to custom modules from some 3rd party developers and not wanting to risk breaking them (from what I've been told).

That said, I am quite new to module development with DNN but I must say I am having a blast with it and I am currently learning/coding with it in C# ;)

I have created a very simple module that just has some buttons on it. I managed to get the module dropped onto a page and its all displaying on the development site fine. The whole site uses a skin that has a rather large banner graphic. So on the page with the module I go to page settings and set the skin to the 'No Banner' type. This works very well...however...

I added a new web control to my project and then via the Host > Module Definitions I added it here too. I setup the code to redirect to this control when one of the buttons is pressed. This works fine but the control/page now ignores the skin choice for the page and reverts back to using the global site one (with the large banner).

Is it possible to change/prevent this or implement something in the code to tell it what skin to use?

Any help would be appreciated and apologies if I have posted this in the wrong section.

Thank you.

Liam
 
New Post
6/5/2010 1:39 AM
 
This occurs because when you go to another control in a module, besides the default view control, DNN loads the ADMIN skin (in the site settings). In DNN 5 this is known as the EDIT skin.

If you want to avoid this you can load the ASCX file yourself, within the original ASCX file by putting it into a Placeholder. Basically you end up bypassing the normal way DNN loads ASCX files and you start loading them manually in your module, it's a common practice in complex modules.

Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
6/7/2010 4:53 AM
 
Thank you for your reply, Chris. I will look into this and then update this thread accordingly. Liam
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedSimple module - control using incorrect skin.Simple module - control using incorrect 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