PDA

View Full Version : Error when saving Template


keastie
01-22-2010, 10:47 AM
Hi everyone,

Having massive issues when trying to save and update my template now.

Error message reads "There is an error at line 160, column 22 (absolute position 3663) of "####": Nested editable regions
Line 160 is <body text="000000">

You can get the template at http://www.newquay-jnr.cornwall.sch.uk/template.dwt

Help would be greatly appreciated because I'm pulling my hair out here!

George

gentleone
01-22-2010, 11:19 AM
If I look at the source code of the template I see that you open with two <body> tags. Remove one!

keastie
01-22-2010, 11:33 AM
Really? doing a find all for "body" and I get
Line 93: body{
Line 159: <body>
Line 160: <body text="#000000">
Line 296: </body>

confused.com

Corrosive
01-22-2010, 11:35 AM
Line 159 and 160 are both opening body tags. As gentleone says, remove one.

gentleone
01-22-2010, 11:41 AM
Yes, remove the one from line 159.

I also saw another thing at the top of your source code.
<head><!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" lang="en" xml:lang="en">

<link rel="stylesheet" type="text/css" href="ddsmoothmenu.css" />
<link rel="stylesheet" type="text/css" href="ddsmoothmenu-v.css" />

The opening <head> tag is at the wrong spot. Put it before your
<link rel="stylesheet" type="text/css" href="ddsmoothmenu.css" />

keastie
01-22-2010, 11:53 AM
OK moved the <head> and it doesnt throw up an error when saving, but now when updating it throws up an message saying theres an error on line 39, this crops up on all of the pages linked to the template.

On Template.dwt
38: <!-- TemplateBeginEditable name="doctitle" -->
39: <title>Untitled Document</title>
40: <!-- TemplateEndEditable -->

On Index.html
39: <!-- InstanceBeginEditable name="doctitle" -->
40: <title>Newquay Junior School - Homepage</title>
41: <!-- InstanceEndEditable -->

The site is at www.newquay-jnr.cornwall.sch.uk (http://www.newquay-jnr.cornwall.sch.uk). Just looked at the homepage and the text is appearing in 3 boxes ontop of the school picture!? Really messed this code up!

gentleone
01-22-2010, 12:00 PM
Looking at the source of http://www.newquay-jnr.cornwall.sch.uk/ and I see still the opening <head> tag before the Doctype.
<head>
<!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" lang="en" xml:lang="en"><!-- InstanceBegin template="/Templates/Template.dwt" codeOutsideHTMLIsLocked="false" -->

<link rel="stylesheet" type="text/css" href="ddsmoothmenu.css" />
<link rel="stylesheet" type="text/css" href="ddsmoothmenu-v.css" />

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
<script type="text/javascript" src="ddsmoothmenu.js">

keastie
01-22-2010, 12:08 PM
Its not updating from the template, throwing up the line 39 error when I try to update on every single page.

Index.html -- not updated, error in template or instance file

On Template.dwt
38: <!-- TemplateBeginEditable name="doctitle" -->
39: <title>Untitled Document</title>
40: <!-- TemplateEndEditable -->

On Index.html
39: <!-- InstanceBeginEditable name="doctitle" -->
40: <title>Newquay Junior School - Homepage</title>
41: <!-- InstanceEndEditable -->

gentleone
01-22-2010, 12:30 PM
I'm not familiar with working with .dwt files. All I can do for you is clean up your code, so that's what I did.

I think you'll have to wait till DWcourse comes home... he can probably help you out with this... or anyone else?

keastie
01-22-2010, 01:11 PM
ok thanks buddy, much appreciated for your help! hopefully someone else will be able to take up where you finished.

DWcourse
01-22-2010, 04:32 PM
People have already pointed out the obvious. I don't see an issue at line 39. Does the error message give any other info?

edbr
01-23-2010, 12:17 AM
ok this is what you have in the link. where <head> is in red , delete and leave where i have added the blue <head>

the links are wrong because they are pointing to files on your cmputer

<head><!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" lang="en" xml:lang="en"><link rel="stylesheet" type="text/css" href="ddsmoothmenu.css" />
<link rel="stylesheet" type="text/css" href="ddsmoothmenu-v.css" />
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
<script type="text/javascript" src="ddsmoothmenu.js">

/***********************************************
* Smooth Navigational Menu- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

</script>

<script type="text/javascript">

ddsmoothmenu.init({
mainmenuid: "smoothmenu1", //menu DIV id
orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
classname: 'ddsmoothmenu', //class added to menu's outer DIV
//customtheme: ["#1c5a80", "#18374a"],
contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})

ddsmoothmenu.init({
mainmenuid: "smoothmenu2", //Menu DIV id
orientation: 'v', //Horizontal or vertical menu: Set to "h" or "v"
classname: 'ddsmoothmenu-v', //class added to menu's outer DIV
//customtheme: ["#804000", "#482400"],
contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})

</script>
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
<style type="text/css">
<!--
.Header {
position: absolute;
left: 160px;
top: 15px;
width: 775px;
height: 150px;
z-index: 1;
}

}
.TimeDate {
position: absolute;
left: 160px;
top: 171px;
height: 21px;
width: 251px;
background-color: #FFFFFF;
z-index: 25;
padding-left: 5px;
}
.News {
position: absolute;
left: 415px;
top: 171px;
width: 520px;
height: 22px;
background-color: #FFFFFF;
z-index: 1;
}
.Menu {
position: absolute;
left: 160px;
top: 199px;
width: 775px;
height: 25px;
z-index: 25;
}
.Main {
position: absolute;
left: 160px;
top: 237px;
width: 770px;
background-color: #FFFFFF;
z-index: 1;
font-family: Verdana, Geneva, sans-serif;
border: thin solid #000;
padding-left: 5px;
}
body {
background-image: url(../Images/pageback2.jpg);
}
-->
</style>
<style type="text/css">

/*Credits: Dynamic Drive CSS Library */
/*URL: http://www.dynamicdrive.com/style/ */

.gallerycontainer{
position: absolute;/*Add a height attribute and set to largest image's height to prevent overlaying*/
left: 30px;
z-index: 100;
}

.thumbnail img{
border: 1px solid white;
margin: 0 5px 5px 0;
}

.thumbnail:hover{
background-color: transparent;
}

.thumbnail:hover img{
border: 1px solid blue;
}

.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
background-color: lightyellow;
padding: 5px;
left: -1000px;
border: 1px dashed gray;
visibility: hidden;
color: black;
text-decoration: none;
}

.thumbnail span img{ /*CSS for enlarged image*/
border-width: 0;
padding: 2px;
}

.thumbnail:hover span{ /*CSS for enlarged image*/
visibility: visible;
top: 0;
left: 230px; /*position where enlarged image should offset horizontally */
z-index: 50;
}

a:link {
color: #000;
}
a:visited {
color: #000;
}
a:hover {
color: #000;
}
a:active {
color: #000;
}
</style>
</head>
<body>
<body text="#000000">
<div class="Header"><img src="Images/header.jpg" width="774" height="149" /></div>
<div class="gallerycontainer">

<a class="thumbnail" href="Images/Weekly Pics/11.JPG"><img src="Images/Weekly Pics/11.JPG" width="100" height="66" border="0" /><span><img src="Images/Weekly Pics/11.JPG" /><br /></span></a><p>

<a class="thumbnail" href="Images/Weekly Pics/21.JPG"><img src="Images/Weekly Pics/21.JPG" width="100" height="66" border="0" /><span><img src="Images/Weekly Pics/21.JPG" /><br /></span></a><p>

<a class="thumbnail" href="Images/Weekly Pics/31.JPG"><img src="Images/Weekly Pics/31.JPG" width="100" height="66" border="0" /><span><img src="Images/Weekly Pics/31.JPG" /><br /></span></a><p>

<a class="thumbnail" href="Images/Weekly Pics/41.JPG"><img src="Images/Weekly Pics/41.JPG" width="100" height="66" border="0" /><span><img src="Images/Weekly Pics/41.JPG" /><br /></span></a>

<br />
</div>

<div class="TimeDate"><SCRIPT>
document.write(Date()+".")
</SCRIPT>

<!-- Script Size: 0.30 KB --></div>

<div class="News"><script language="javascript">

//News Bar script- By Premshree Pillai (premshree@hotmail.com)
//http://www.qiksearch.com/javascripts.htm
//Enhancements by Dynamic Drive
//Visit http://www.dynamicdrive.com for this script

var msgs = new Array(
"19/01/2009 January Newsletter Here",
"08/12/2009 Welcome to the New School Website"); // No comma after last tickerwmsg

var msg_url = new Array(
"newsletters.html",
"index.html"); // No comma after last ticker url

var barwidth='350px' //Enter main bar width in px or %
var setdelay=3000 //Enter delay between msgs, in mili-seconds
var mouseover_color='#E1FFE1' //Specify highlight color
var mouseout_color='#FFFFFF' //Specify default color
/////////////////////////////////////////////////////////////////////

var count=0;
var ns6=document.getElementById&&!document.all
var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1

if (ie4||ns6){
document.write('<form name="news_bar"><input type="button" value="Previous" onclick="moveit(0)" class="scrollerstyle" style="width:60px; height:22px; border-right-width:0px;" name="prev" title="Previous News"><input type="button" name="news_bar_but" onclick="goURL();" style="color:#000000;background:#FFFFFF; width:'+barwidth+'; height:22px; border-width:1; border-color:#000000; cursor:hand" onmouseover="this.style.background=mouseover_color" onmouseout="this.style.background=mouseout_color"><input type="button" value="Next" onclick="moveit(1)" class="scrollerstyle" style="width:60px; height:22px; border-left-width:0px;" name="next" title="Next News"></form>');
}
else{
document.write('<form name="news_bar"><input type="button" value="Previous" onclick="moveit(0)">')
if (navigator.userAgent.indexOf("Opera")!=-1)
document.write('<input type="button" name="news_bar_but" onclick="goURL();" style="width:'+barwidth+'" border="0">')
else
document.write('<input type="button" name="news_bar_but" onclick="goURL();" width="'+barwidth+'" border="0">')
document.write('<input type="button" value="Next" onclick="moveit(1)"></form>')
}

function init_news_bar(){
document.news_bar.news_bar_but.value=msgs[count];
}
//moveit function by Dynamicdrive.com
function moveit(how){
if (how==1){ //cycle foward
if (count<msgs.length-1)
count++
else
count=0
}
else{ //cycle backward
if (count==0)
count=msgs.length-1
else
count--
}
document.news_bar.news_bar_but.value=msgs[count];
}

setInterval("moveit(1)",setdelay)

function goURL(){
location.href=msg_url[count];
}

init_news_bar();

</script>
</div>
<div class="Menu"><div id="smoothmenu1" class="ddsmoothmenu">
<ul>
<li><a href="#">School</a>
<ul>
<li><a href="file:///C|/Newquay Junior School Website/Templates/index.html">Homepage</a></li>
<li><a href="file:///C|/Newquay Junior School Website/Templates/headswelcome.html">Head's Welcome</a></li>
<li><a href="file:///C|/Newquay Junior School Website/Templates/staff.html">Staff</a></li>
<li><a href="file:///C|/Newquay Junior School Website/Templates/calendar.html">Calender</a></li>
<li><a href="#">Events</a></li>
<li><a href="file:///C|/Newquay Junior School Website/Templates/polytunnel.html">Our Polytunnel</a></li>
</ul></li>
<li><a href="#">Children</a>
<ul>
<li><a href="file:///C|/Newquay Junior School Website/Templates/childreny3.html">Year 3</a></li>
<li><a href="file:///C|/Newquay Junior School Website/Templates/childreny4.html">Year 4</a></li>
<li><a href="file:///C|/Newquay Junior School Website/Templates/childreny5.html">Year 5</a></li>
<li><a href="file:///C|/Newquay Junior School Website/Templates/childreny6.html">Year 6</a></li>
<li><a href="#">Sports</a></li>
<li><a href="#">Gifted & Talented</a></li>
<li><a href="#">Childrens Blogs</a></li>
<li><a href="file:///C|/Newquay Junior School Website/Templates/kidzone.html">Kids Zone</a></li>
</ul>
</li>
<li><a href="#">Parents</a>
<ul>
<li><a href="file:///C|/Newquay Junior School Website/Templates/newsletters.html">Newsletters</a></li>
<li><a href="file:///C|/Newquay Junior School Website/Templates/pta.html">PTA</a></li>
<li><a href="file:///C|/Newquay Junior School Website/Templates/policies.html">Policies</a></li>
<li><a href="file:///C|/Newquay Junior School Website/Templates/usefullinks.html">Useful Links</a></li>
<li><a href="#">School Uniform</a></li>
</ul>
</li>

<li><a href="#">Other Information</a>
<ul>
<li><a href="file:///C|/Newquay Junior School Website/Templates/ofsted.html">OFSTED</a></li>
<li><a href="file:///C|/Newquay Junior School Website/Templates/prospectus.html">Prospectus</a></li>
<li><a href="file:///C|/Newquay Junior School Website/Templates/usefuldownloads.html">Useful Downloads</a></li>
</ul>
<li><a href="file:///C|/Newquay Junior School Website/Templates/contactus.html">Contact Us</a></li>
<li><a href="#">Staff</a></li>
</ul>
</ul>
<br style="clear: left" />
</div></div>
<!-- TemplateBeginEditable name="Main" -->
<div class="Main"></div>
<!-- TemplateEndEditable -->
</body>
</html>

gentleone
01-23-2010, 03:28 PM
ok this is what you have in the link. where <head> is in red , delete and leave where i have added the blue <head>

the links are wrong because they are pointing to files on your cmputer

<head><!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" lang="en" xml:lang="en">
<head>
<link rel="stylesheet" type="text/css" href="ddsmoothmenu.css" />
<link rel="stylesheet" type="text/css" href="ddsmoothmenu-v.css" />

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
<script type="text/javascript" src="ddsmoothmenu.js">

/***********************************************
* Smooth Navigational Menu- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

</script>

<script type="text/javascript">

ddsmoothmenu.init({
mainmenuid: "smoothmenu1", //menu DIV id
orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
classname: 'ddsmoothmenu', //class added to menu's outer DIV
//customtheme: ["#1c5a80", "#18374a"],
contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})

ddsmoothmenu.init({
mainmenuid: "smoothmenu2", //Menu DIV id
orientation: 'v', //Horizontal or vertical menu: Set to "h" or "v"
classname: 'ddsmoothmenu-v', //class added to menu's outer DIV
//customtheme: ["#804000", "#482400"],
contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})

</script>
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
<style type="text/css">
<!--
.Header {
position: absolute;
left: 160px;
top: 15px;
width: 775px;
height: 150px;
z-index: 1;
}

}
.TimeDate {
position: absolute;
left: 160px;
top: 171px;
height: 21px;
width: 251px;
background-color: #FFFFFF;
z-index: 25;
padding-left: 5px;
}
.News {
position: absolute;
left: 415px;
top: 171px;
width: 520px;
height: 22px;
background-color: #FFFFFF;
z-index: 1;
}
.Menu {
position: absolute;
left: 160px;
top: 199px;
width: 775px;
height: 25px;
z-index: 25;
}
.Main {
position: absolute;
left: 160px;
top: 237px;
width: 770px;
background-color: #FFFFFF;
z-index: 1;
font-family: Verdana, Geneva, sans-serif;
border: thin solid #000;
padding-left: 5px;
}
body {
background-image: url(../Images/pageback2.jpg);
}
-->
</style>
<style type="text/css">

/*Credits: Dynamic Drive CSS Library */
/*URL: http://www.dynamicdrive.com/style/ */

.gallerycontainer{
position: absolute;/*Add a height attribute and set to largest image's height to prevent overlaying*/
left: 30px;
z-index: 100;
}

.thumbnail img{
border: 1px solid white;
margin: 0 5px 5px 0;
}

.thumbnail:hover{
background-color: transparent;
}

.thumbnail:hover img{
border: 1px solid blue;
}

.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
background-color: lightyellow;
padding: 5px;
left: -1000px;
border: 1px dashed gray;
visibility: hidden;
color: black;
text-decoration: none;
}

.thumbnail span img{ /*CSS for enlarged image*/
border-width: 0;
padding: 2px;
}

.thumbnail:hover span{ /*CSS for enlarged image*/
visibility: visible;
top: 0;
left: 230px; /*position where enlarged image should offset horizontally */
z-index: 50;
}

a:link {
color: #000;
}
a:visited {
color: #000;
}
a:hover {
color: #000;
}
a:active {
color: #000;
}
</style>
</head>
<body>
<body text="#000000">
<div class="Header"><img src="Images/header.jpg" width="774" height="149" /></div>
<div class="gallerycontainer">

<a class="thumbnail" href="Images/Weekly Pics/11.JPG"><img src="Images/Weekly Pics/11.JPG" width="100" height="66" border="0" /><span><img src="Images/Weekly Pics/11.JPG" /><br /></span></a><p>

<a class="thumbnail" href="Images/Weekly Pics/21.JPG"><img src="Images/Weekly Pics/21.JPG" width="100" height="66" border="0" /><span><img src="Images/Weekly Pics/21.JPG" /><br /></span></a><p>

<a class="thumbnail" href="Images/Weekly Pics/31.JPG"><img src="Images/Weekly Pics/31.JPG" width="100" height="66" border="0" /><span><img src="Images/Weekly Pics/31.JPG" /><br /></span></a><p>

<a class="thumbnail" href="Images/Weekly Pics/41.JPG"><img src="Images/Weekly Pics/41.JPG" width="100" height="66" border="0" /><span><img src="Images/Weekly Pics/41.JPG" /><br /></span></a>

<br />
</div>

<div class="TimeDate"><SCRIPT>
document.write(Date()+".")
</SCRIPT>

<!-- Script Size: 0.30 KB --></div>

<div class="News"><script language="javascript">

//News Bar script- By Premshree Pillai (premshree@hotmail.com)
//http://www.qiksearch.com/javascripts.htm
//Enhancements by Dynamic Drive
//Visit http://www.dynamicdrive.com for this script

var msgs = new Array(
"19/01/2009 January Newsletter Here",
"08/12/2009 Welcome to the New School Website"); // No comma after last tickerwmsg

var msg_url = new Array(
"newsletters.html",
"index.html"); // No comma after last ticker url

var barwidth='350px' //Enter main bar width in px or %
var setdelay=3000 //Enter delay between msgs, in mili-seconds
var mouseover_color='#E1FFE1' //Specify highlight color
var mouseout_color='#FFFFFF' //Specify default color
/////////////////////////////////////////////////////////////////////

var count=0;
var ns6=document.getElementById&&!document.all
var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1

if (ie4||ns6){
document.write('<form name="news_bar"><input type="button" value="Previous" onclick="moveit(0)" class="scrollerstyle" style="width:60px; height:22px; border-right-width:0px;" name="prev" title="Previous News"><input type="button" name="news_bar_but" onclick="goURL();" style="color:#000000;background:#FFFFFF; width:'+barwidth+'; height:22px; border-width:1; border-color:#000000; cursor:hand" onmouseover="this.style.background=mouseover_color" onmouseout="this.style.background=mouseout_color"><input type="button" value="Next" onclick="moveit(1)" class="scrollerstyle" style="width:60px; height:22px; border-left-width:0px;" name="next" title="Next News"></form>');
}
else{
document.write('<form name="news_bar"><input type="button" value="Previous" onclick="moveit(0)">')
if (navigator.userAgent.indexOf("Opera")!=-1)
document.write('<input type="button" name="news_bar_but" onclick="goURL();" style="width:'+barwidth+'" border="0">')
else
document.write('<input type="button" name="news_bar_but" onclick="goURL();" width="'+barwidth+'" border="0">')
document.write('<input type="button" value="Next" onclick="moveit(1)"></form>')
}

function init_news_bar(){
document.news_bar.news_bar_but.value=msgs[count];
}
//moveit function by Dynamicdrive.com
function moveit(how){
if (how==1){ //cycle foward
if (count<msgs.length-1)
count++
else
count=0
}
else{ //cycle backward
if (count==0)
count=msgs.length-1
else
count--
}
document.news_bar.news_bar_but.value=msgs[count];
}

setInterval("moveit(1)",setdelay)

function goURL(){
location.href=msg_url[count];
}

init_news_bar();

</script>
</div>
<div class="Menu"><div id="smoothmenu1" class="ddsmoothmenu">
<ul>
<li><a href="#">School</a>
<ul>
<li><a href="file:///C|/Newquay Junior School Website/Templates/index.html">Homepage</a></li>
<li><a href="file:///C|/Newquay Junior School Website/Templates/headswelcome.html">Head's Welcome</a></li>
<li><a href="file:///C|/Newquay Junior School Website/Templates/staff.html">Staff</a></li>
<li><a href="file:///C|/Newquay Junior School Website/Templates/calendar.html">Calender</a></li>
<li><a href="#">Events</a></li>
<li><a href="file:///C|/Newquay Junior School Website/Templates/polytunnel.html">Our Polytunnel</a></li>
</ul></li>
<li><a href="#">Children</a>
<ul>
<li><a href="file:///C|/Newquay Junior School Website/Templates/childreny3.html">Year 3</a></li>
<li><a href="file:///C|/Newquay Junior School Website/Templates/childreny4.html">Year 4</a></li>
<li><a href="file:///C|/Newquay Junior School Website/Templates/childreny5.html">Year 5</a></li>
<li><a href="file:///C|/Newquay Junior School Website/Templates/childreny6.html">Year 6</a></li>
<li><a href="#">Sports</a></li>
<li><a href="#">Gifted & Talented</a></li>
<li><a href="#">Childrens Blogs</a></li>
<li><a href="file:///C|/Newquay Junior School Website/Templates/kidzone.html">Kids Zone</a></li>
</ul>
</li>
<li><a href="#">Parents</a>
<ul>
<li><a href="file:///C|/Newquay Junior School Website/Templates/newsletters.html">Newsletters</a></li>
<li><a href="file:///C|/Newquay Junior School Website/Templates/pta.html">PTA</a></li>
<li><a href="file:///C|/Newquay Junior School Website/Templates/policies.html">Policies</a></li>
<li><a href="file:///C|/Newquay Junior School Website/Templates/usefullinks.html">Useful Links</a></li>
<li><a href="#">School Uniform</a></li>
</ul>
</li>

<li><a href="#">Other Information</a>
<ul>
<li><a href="file:///C|/Newquay Junior School Website/Templates/ofsted.html">OFSTED</a></li>
<li><a href="file:///C|/Newquay Junior School Website/Templates/prospectus.html">Prospectus</a></li>
<li><a href="file:///C|/Newquay Junior School Website/Templates/usefuldownloads.html">Useful Downloads</a></li>
</ul>
<li><a href="file:///C|/Newquay Junior School Website/Templates/contactus.html">Contact Us</a></li>
<li><a href="#">Staff</a></li>
</ul>
</ul>
<br style="clear: left" />
</div></div>
<!-- TemplateBeginEditable name="Main" -->
<div class="Main"></div>
<!-- TemplateEndEditable -->
</body>
</html>


The blue opening <head> tag has to be before the stylesheets as well... see my altered version above.

keastie
01-25-2010, 11:45 AM
OK have changed everything thats been said. Again will let me save the Template but won't let me update the pages, still with the Line 39 error.

Do you think I should just start from scratch again?

keastie
01-25-2010, 11:52 AM
OK interesting update, I created a new site from template called indextest. When I saved and updated the template, indextest updated whereas the others failed.

Corrosive
01-25-2010, 12:09 PM
Have you tried selecting to attach the template to your pages again?

Also, if you do decide to start again, look at CSS and PHP includes to handle your updates. If you'd had you banner set as a background to a div tag in CSS then you could have changed one rule and had the whole site update.

There are massive benefits to building with CSS.

keastie
01-25-2010, 12:25 PM
First 5 lines of Template
1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
4. <head>

First 5 lines of Indextest

1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><!-- InstanceBegin template="/Templates/Template.dwt" codeOutsideHTMLIsLocked="false" -->
4. <head>

BUT

First 5 lines of Index:

1. <!-- InstanceBegin template="/Templates/Template.dwt" codeOutsideHTMLIsLocked="false" --><!-- InstanceBegin template="/Templates/Template.dwt" codeOutsideHTMLIsLocked="false" --><head>
2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4. <html xmlns="http://www.w3.org/1999/xhtml (http://www.w3.org/1999/xhtml)" lang="en" xml:lang="en">
5. <head>

Line 4 of Index.html comes up yellow, in the properties it says:

Invalid markup - Markup invalid because it doesnt belong inside the tag it's in.

This is the case for all of the pages that wont update

Does this help?

keastie
01-25-2010, 12:30 PM
Thanks Corrosive, ideally I would of had training on CSS, but working in a junior school there isnt the funding for it. Any good online resources I could look at to teach myself?

Corrosive
01-25-2010, 12:41 PM
Thanks Corrosive, ideally I would of had training on CSS, but working in a junior school there isnt the funding for it. Any good online resources I could look at to teach myself?

I've written some stuff on CSS in the past. Some of it might help you;

http://corrosiveonline.co.uk/tutorials.php

Otherwise W3 Schools is pretty good.

keastie
01-25-2010, 01:00 PM
Brilliant, have a look at the other post I put up, any suggestions?

Corrosive
01-25-2010, 02:05 PM
Have you tried replacing the code you gave in the top of the dwt file? I'm clutching at straws now. I do find templates get a bit messy.

keastie
01-27-2010, 09:22 AM
Hi guys,

Found the only solution for this was to create a new page from the template (which for some reason would allow me to update) and then copy the content from each page into is and overwrite the original page. This would then allow me to update.

Bizarre!