You need to Register for free and Login to post a message in the forum.

Forum

Subject: DNN 4.03 new default.aspx issues
Prev Next
You are not authorized to post a reply.

Author Messages
jrobertsj
Nuke Newbie
Nuke Newbie
Posts:2

22 May 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/xhtml1-transitional.dtd">
<html xmlns="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/xhtml1-transitional.dtd">
<html xmlns="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>
leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3324

22 May 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/leesykes

Lee Sykes's Facebook Profile
You are not authorized to post a reply.
Forums > Users Lounge > DNN Creative Articles > DNN 4.03 new default.aspx issues



ActiveForums 3.7

Latest Forum Posts

localhost Install issues by cdees
I've set up a local host and want to run DNN for a local development machine.  The host is set up; h...
RE: Reversing Limited Access to the Admin Menu by wynnjon
That is what I thought.  So for my clients that will need to manage user accounts, I can not limit t...
RE: Reversing Limited Access to the Admin Menu by leesykes
I seem to recall it doesn't work
RE: Reversing Limited Access to the Admin Menu by wynnjon
Thanks Lee-  I will give that a try.An additional question- If you place the "User Accounts" page un...
RE: Reversing Limited Access to the Admin Menu by leesykes
all you need to do is reverse the process within the SQL tables.Compare the data to the other rows i...
RE: Module not working when logged off. by leesykes
thanks for the info,
Reversing Limited Access to the Admin Menu by wynnjon
Hi!  I followed the tutorial for limiting the access to the admin menu.  What a great thing!However,...
RE: Trouble installing! Designer trying to be a Developer. by leesykes
glad to hear you found a solution, thanks,
RE: Skim Question by leesykes
You could but you will not be able to have an XHTML compliant page as the SolpartMenu is non-complia...
RE: Include in Menu - Weird Request by leesykes
For your sitemap.xml file - use GSiteCrawlerYou could create the site map before moving the sub menu...
RE: Trouble installing! Designer trying to be a Developer. by awright14
It looks like I had ASP installed in the wrong order.  Copying and pasting this into the Run Command...
RE: Need Help Changing Containers Contentpane's Text Color by leesykes
Hello,Have you tried adding a class to the content area of your container and then styling the p, a,...
RE: Vertical SolpartMenu by leesykes
hello,If you wish to display the admin and host menus within the house menu, you need to enable it i...
RE: Firefox Does Not Display WMV File In Media Module by leesykes
Hello,I have just tested this and I can play a wmv file in Firefox 3.0.3, so it does suggest that it...
RE: advice wanted convert site to DNN while keeping existing asp functionality by leesykes
You could try using the IFrame module in DotNetNuke and then just link the IFrame to the current pag...
RE: Need Help Changing Containers Contentpane's Text Color by CROKeefe
Thanks for the quick update... I know it looks broken right now, but I had the TITLE classes working...
RE: Need Help Changing Containers Contentpane's Text Color by leesykes
The default class for a container is .head so you will find that the .head class will override any s...
RE: Module not working when logged off. by t.ramya85
have to set the cache time to '0' in that module setting.
Trouble installing! Designer trying to be a Developer. by awright14
Hi Everyone,Just to let you know, I'm very new at this - very new to any type of dev environments in...
Skim Question by tlsadler
I've been going over your videos on skinning and may have missed something somewhere.Can you use the...
DotNetNuke Modules
RSS Feeds