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, ...50 Skins with the SAME source HTML code? Why?50 Skins with the SAME source HTML code? Why?
Previous
 
Next
New Post
9/23/2008 9:26 PM
 

Why cant we just swap stylesheets instead of having to create a duplicate version of skin files to use a different style sheet?  I have one site, one layout, but many different "themes". these themes are just changes in the CSS. To make a new skin, I have to create a new .ascx file for the skin which contains the EXACT same code as all the others, but its the only way I can use a different css file by giving the same name as the .ascx skin file...  I thought of a solution where I could just create an "include" file where all the skin files just inherit or "include" the main skin HTML code so when I need to make a change to the HTML, I can do it in just one file instead of 50 skin files. Anyone have a solution or work-around I am not familiar with? So frustrating...

-Mike

 
New Post
9/24/2008 3:50 AM
 

I agree we need CSS versions of the same (ascx) skin, but until then you can use an include 9not in an HTML skin).

Put the content of the skin in a file and include that in every ascx skin (this is ASP.NET, not DNN)

The content of your ascx skin would be this:

<!--#include file="myinclude.inc"-->

and the actual skin content would be in the myinclude.inc file.

You still need 50 ascx skins but at least you can make your changes in one file.

 

 
New Post
9/25/2008 10:47 AM
 

Timo Breumelhof wrote
 

I agree we need CSS versions of the same (ascx) skin, but until then you can use an include 9not in an HTML skin).

Put the content of the skin in a file and include that in every ascx skin (this is ASP.NET, not DNN)

The content of your ascx skin would be this:

and the actual skin content would be in the myinclude.inc file.

You still need 50 ascx skins but at least you can make your changes in one file.

 

This is a great workaround recommendation!


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
9/25/2008 3:54 PM
 

what if I want to add a new skin object? 50 skins still need to be updated.  I need to be able to "include" all the "Register" and <%=SKINPATH%> etc... in the included file.  if this can be done, can you possibly show an example?  I have not been able to get this to work.

 

-MAK

 
New Post
9/25/2008 6:45 PM
 

Ok, here's an Example:

A. IncludeExample.ascx
--------------------------------------------------
Content:

<!--#include file="Include.inc"-->

 

B. Include.inc
--------------------------------------------------
Content:

<%@ Control Language="vb" CodeBehind="~/admin/Skins/skin.vb" AutoEventWireup="false"
    Explicit="True" Inherits="DotNetNuke.UI.Skins.Skin" %>
<%@ Register TagPrefix="dnn" TagName="NAV" Src="~/Admin/Skins/Nav.ascx" %>
<%@ Register TagPrefix="dnn" TagName="LOGIN" Src="~/Admin/Skins/Login.ascx" %>
<div class="SkinContainer">
    <div id="ControlPanel" runat="server">
    </div>
    <div id="menu">
        <dnn:NAV runat="server" ID="dnnNAV" ProviderName="DNNMenuNavigationProvider" CSSControl="main_dnnmenu_bar"
            CSSContainerRoot="main_dnnmenu_container" CSSNode="main_dnnmenu_item" CSSNodeRoot="main_dnnmenu_rootitem"
            CSSIcon="main_dnnmenu_icon" CSSContainerSub="main_dnnmenu_submenu" CSSBreak="main_dnnmenu_break"
            CSSNodeHover="main_dnnmenu_itemhover" NodeLeftHTMLBreadCrumbRoot="<img alt=&quot;*&quot; BORDER=&quot;0&quot; src=&quot;breadcrumb.gif&quot;/>" />
            <dnn:LOGIN runat="server" CssClass="Login"/>
    </div>
    <div id="ContentPane" runat="server" class="ContentPane">
    </div>
</div>

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...50 Skins with the SAME source HTML code? Why?50 Skins with the SAME source HTML code? Why?


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