Learn More





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, ...Duplicated "class" atributeDuplicated "class" atribute
New Post
7/24/2014 5:48 AM


I´m learning to make skins, for now i only make a header with a logo and the login pane. When i try to apply after install it, i recibe a error: 

No se pudo cargar el skin: /Portals/_default/skins/pruebaskineva/index.ascx, Error: The tag contains duplicate 'class' attributes.

I revise the code (html,css and ascx) but i cant find the error. could anyone help me?

It´s my first skin, i understand that i have a lot of things wrong, but i am learning and i want to try the things that i am doing.



<%@ Control language="vb" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.UI.Skins.Skin" %>
<%@ Register TagPrefix="dnn" TagName="LOGO" Src="~/Admin/Skins/Logo.ascx" %>
<%@ Register TagPrefix="dnn" TagName="USER" Src="~/Admin/Skins/User.ascx" %>
<%@ Register TagPrefix="dnn" TagName="LOGIN" Src="~/Admin/Skins/Login.ascx" %>
<%@ Register TagPrefix="dnn" TagName="NAV" Src="~/Admin/Skins/Nav.ascx" %>
<div id="wrapper">
    	<div id="header">
			<div id="logo">
				<dnn:LOGO runat="server" id="dnnLOGO" />
            <div id="testimonials">
            	<object id="text" codebase="<%= SkinPath %>TESTIMONIALS"> </object>
        	<div id="login">
        		<!--Si quisieramos añadir mas elementos a nuestro login bastaria con añadir los objetos aqui-->
        		<!--Datos del usuario-->
				<dnn:USER runat="server" id="dnnUSER"  CssClass="user" />
            	<!--Separador de los componentes--><span class="linkseparator">||</span><!--Salir/entrar-->
				<dnn:LOGIN runat="server" id="dnnLOGIN"  CssClass="user" />
		</div> <!--FIN CABECERA-->
        <div id="content">
         	<div class="bannerPane" runat="server" class="bannerPane"></div>
        	<div class="chatPane"></div>
            <div class="contentPane"></div>
	<div id="menu">
		<dnn:NAV runat="server" id="dnnNAV"  ProviderName="DDRMenuNavigationProvider" IndicateChildren="false" ControlOrientation="Horizontal" CSSControl="mainMenu" />
New Post
7/24/2014 6:11 AM
did you check this line  of your code: < div class="bannerPane" runat="server" class="bannerPane" >< /div > ?

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group   European Network of DotNetNuke Professionals

Speed up your DNN Websites with TurboDNN
New Post
7/25/2014 11:15 AM

Another item to keep in mind ... and this is not the error you are currently getting, but still worthy of making note of ... is that you will need at least 1 pane titled "contentPane" in order for the skin to function properly. You do have a DIV with the class of "contentPane" there in your skin but it does not have the runat="server" text included which you will need in order to turn that DIV into a pane.

What happens is you update the syntax in the content pane and if you remove the 

<object id="text" codebase="<%= SkinPath %>TESTIMONIALS"> </object>

from the skin?

New Post
8/13/2014 6:27 AM
Sebastian Leupold wrote:
did you check this line  of your code: < div class="bannerPane" runat="server" class="bannerPane" >< /div > ?


Thank you,it was the problem ;)
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Duplicated "class" atributeDuplicated "class" atribute

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.
Try Evoq
For Free
Start Free Trial
a Demo
See Evoq Live
Need More Information?