DNN 4.03 new default.aspx issues
Last Post 05/22/2006 2:19 PM by Lee Sykes. 1 Replies.
Author Messages
Jonathan Roberts
Nuke Newbie
Nuke Newbie
Posts:1


--
05/22/2006 1:34 PM
    First excuse my ignorance - where does the garbage code come from?
    Using DNN 4.03 & your most recent default.aspx I still get non-compliant page generation. The META tags do not close and there are LINKS to .css I have not intended.
    This setup is using the INSTALL package - to mimic the public site - Obviously I missed something but what is it?
    Cheers
    ========================================
    The ASPX Code:
    <%@ Page Language="vb" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.Framework.DefaultPage" CodeFile="Default.aspx.vb" %>
    <%@ Register TagPrefix="dnn" Namespace="DotNetNuke.Common.Controls" Assembly="DotNetNuke" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xht...">" target="_blank" rel="nofollow">http://www.w3.org/TR/xhtml1/DTD/xht...">
    <html xmlns="http://www.w3.org/1999/xhtml">" target="_blank" rel="nofollow">http://www.w3.org/1999/xhtml">
    <head <%--id="Head"--%> runat="server">
        <title>
            <%= Title %>
        </title>
        <%= Comment %>
        <meta name="DESCRIPTION" content="<%= Description %>"/>
        <meta name="KEYWORDS" content="<%= KeyWords %>"/>
        <meta name="COPYRIGHT" content="<%= Copyright %>"/>
        <meta name="GENERATOR" content="<%= Generator %>"/>
        <meta name="AUTHOR" content="<%= Author %>"/>
        <meta name="RESOURCE-TYPE" content="DOCUMENT"/>
        <meta name="DISTRIBUTION" content="GLOBAL"/>
        <meta name="ROBOTS" content="INDEX, FOLLOW"/>
        <meta name="REVISIT-AFTER" content="1 DAYS"/>
        <meta name="RATING" content="GENERAL"/>
        <meta http-equiv="PAGE-ENTER" content="RevealTrans(Duration=0,Transition=1)"/>
        <style id="StylePlaceholder" runat="server"></style>
        <asp:placeholder id="CSS" runat="server"></asp:placeholder>
        <asp:placeholder id="FAVICON" runat="server"></asp:placeholder>
        <script src="<%= Page.ResolveUrl("js/dnncore.js") %>"></script>
        <asp:placeholder id="phDNNHead" runat="server"></asp:placeholder>
    </head>
    ========================================
    The Rendered Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xht...">" target="_blank" rel="nofollow">http://www.w3.org/TR/xhtml1/DTD/xht...">
    <html xmlns="http://www.w3.org/1999/xhtml">" target="_blank" rel="nofollow">http://www.w3.org/1999/xhtml">
    <head id="Head">
    <title>
        Client Portals > Home
    </title>
    <meta name="DESCRIPTION" content="&lt;%= Description %>">
    <meta name="KEYWORDS" content="&lt;%= KeyWords %>">
    <meta name="COPYRIGHT" content="&lt;%= Copyright %>">
    <meta name="GENERATOR" content="&lt;%= Generator %>">
    <meta name="AUTHOR" content="&lt;%= Author %>">
    <meta name="RESOURCE-TYPE" content="DOCUMENT">
    <meta name="DISTRIBUTION" content="GLOBAL">
    <meta name="ROBOTS" content="INDEX, FOLLOW">
    <meta name="REVISIT-AFTER" content="1 DAYS">
    <meta name="RATING" content="GENERAL">
    <meta http-equiv="PAGE-ENTER" content="RevealTrans(Duration=0,Transition=1)"><style id="StylePlaceholder"></style>
    <LINK id="_Portals__default_" rel="stylesheet" type="text/css" href="/Portals/_default/default.css"></LINK>
    <LINK id="_Portals__default_Skins_DNN_Blue_" rel="stylesheet" type="text/css" href="/Portals/_default/Skins/DNN-Blue/skin.css"></LINK>
    <LINK id="_Portals__default_Containers_DNN_Blue_" rel="stylesheet" type="text/css" href="/Portals/_default/Containers/DNN-Blue/container.css"></LINK>
    <LINK id="_Portals_0_" rel="stylesheet" type="text/css" href="/Portals/0/portal.css"></LINK>
     <script src="/js/dnncore.js"></script>
     </head>
    Lee Sykes
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945


    --
    05/22/2006 2:19 PM
    I'm afraid there is quite a bit more to do to get DNN to produce valid code. The default.aspx file allows you to switch the browser DOC Type, it doesn't switch DNN to use valid code.

    There is a tutorial on: http://www.obrienit.se/

    (You need to register and login to the site before the tutorial appears)

    which covers switching DNN to produce valid code for DNN3.x - this will give you an idea of what you need to do for DNN4.x - I haven't tried it in DNN4.x.

    The problem is the CSS that comes as default with DNN is not valid, so you need to edit the default.css file.

    and the other problem is that DNN generates invalid code which it inserts into each page. - To edit this you need to edit the core code and recompile DNN then re-upload the new dotnetnuke.dll file into the bin folder.

    Once you have done that you then need to edit the core modules and whatever other modules you are using if they are programmed using non-validating code - quite a lot of them are.

    The details are provided in the tutorial,

    Good Luck
    Lee Sykes
    Site Administrator
    Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

    Twitter: www.twitter.com/DNNCreative

    Lee Sykes's Facebook Profile


    ---