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

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Dynamic loading skinDynamic loading skin
Previous
 
Next
New Post
4/10/2006 8:15 AM
 
Hi
I have followed the thread here "http://forums.asp.net/1/1067496/ShowThread.aspx" before rasing this question.
I got the switcheroo.ascx as explained by Nik to work. I also saw the code in Default.vb that loads the skin based on skinsrc cookie.
I feel however that neither of these address the requirement for loading skins from different skin folder.
Example: Based on the value in my querystring I would like to load DNN-Blue on DNN-Red
All the sample codes do is load a different ascx within the same (current) skin folder.
Is there a way to achieve what I am looking for ??

Many thanks


 

 
New Post
4/10/2006 9:33 AM
 

You can use the switcheroo.ascx script to load any skin. Instead of just passing a filename, which causes the file to be loaded from the current folder, you can give it a path. Something like "~/Portals/_default/Skins/DNN-Red/Horizontal Menu - Fixed Width.ascx" will do the trick.

The LoadControl method used in the script will load any user control as long as it is within the same application.

Nik

 


Nik Kalyani
Co-founder
DotNetNuke Corporation
Blog | Twitter | FaceBook
 
New Post
4/10/2006 9:18 PM
 
Hi
Thanks for the response , that worked for me. I need to do something similar to dynamically load different containers depending on the skin that is selected.
I tried creating a switchcontainer.ascx conatiner control to load the required container. However it seems that the default container corresponding to the default skin is the one that gets loaded no matter what.

Is this true ?

Thanks


 

 
New Post
4/11/2006 2:11 AM
 

You should be able to switch containers in the same way unless the container is hard-coded in the skin. I haven't tried this out, but I am fairly confident it will work the same way. Another approach you can take is to just create a simple <div> tag with the required ContentPane Id in the container, but have the overall appearance dictated by another user control that is included in the container. Let me know how your experimentation goes...if you can't get it to work, I'll write-up a quick example.

Nik

 


Nik Kalyani
Co-founder
DotNetNuke Corporation
Blog | Twitter | FaceBook
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Dynamic loading skinDynamic loading 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