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, ...Programmatically change PAGE skin howtoProgrammatically change PAGE skin howto
Previous
 
Next
New Post
9/26/2008 2:51 PM
 

Hello!

"Small" newbie problem...

I want to use a hidden module to trigger the change of the page skin.

Any idea of the right way to do it (if any...)? Does any of the below is a good starting point?

        protected void Page_PreInit(object sender, EventArgs e)
        {

            //Page.Theme = "";
            //Page.LoadTemplate();
            //Page.SkinID = "";
            //Page.StyleSheetTheme = "";
           
        }

 

Thank you!

 
New Post
9/30/2008 8:17 PM
 

http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/109/threadid/257414/scope/posts/Default.aspx


www.nukedesigners.com W3C compliant Valid skins for dotnetnuke.
 
New Post
10/1/2008 11:32 AM
 

Thanks Avi!

But it's not the same situation. It's no problem to change a color...

Imagine that I have a portal on which I try to have different skins for different tabs.

It's true I can change by hand the page skins, etc, etc, but I'm trying to find an automatic solution.

Like adding a "special" module to that page, which triggers the skin change.

 

I don't know if it's clearly explained... but is the best description I can deliver

 

 
New Post
10/1/2008 5:52 PM
 

Will you have different CSS or completely different Skins?

The CSS can be done a bit like the mentioned post.

<div class="<%=PortalSettings.ActiveTab.TabName%>">

"The actual skin"

</div>

Now you can address the home page like this

.Home a:link, .Home a:visited{

color:#F00;

}

This will make all the A elements on the home page red

 
New Post
10/2/2008 2:07 AM
 

Helo Timo!

I plan to use completly different skins.

I can use SkinSrc to get skin name but I don't know how I can set the active/current skin.

 

Thank you!

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Programmatically change PAGE skin howtoProgrammatically change PAGE skin howto


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