PDA

View Full Version : Updating templates & drop down menu's


stevenm21
04-23-2006, 10:24 PM
when I insert a drop down menu to a page on my site, it works ok, but anytime i update my template that the page with the menu uses, the drop down menu stops working and I need to put a new on in all over again.

can anyone tell me how to fix this?

stevenm21
04-24-2006, 10:27 AM
can anyone advise how to fix this?

dthomsen8
04-24-2006, 12:24 PM
when I insert a drop down menu to a page on my site, it works ok, but anytime i update my template that the page with the menu uses, the drop down menu stops working and I need to put a new on in all over again.

can anyone tell me how to fix this?

Changing a Dreamweaver template always changes the pages made from that template. If you change a particular page made from a template, and then change the template, the changes disappear, just as you found out.

Add the changes to the template, and then they will appear on particular pages.

How did the Flyers get to Fife? We think they are here in Philadelphia, PA.

stevenm21
04-24-2006, 01:17 PM
I am not sure what you mean?

I take it I am doing something wrong? how can I keep the pages with the drop down menu's working if I make changes to my template?

Yeah Fife Flyers have been around since 1938 (pity they arent as good as the Philly Flyers, lol)

dthomsen8
04-24-2006, 02:27 PM
I am not sure what you mean?

I take it I am doing something wrong? how can I keep the pages with the drop down menu's working if I make changes to my template?

Yeah Fife Flyers have been around since 1938 (pity they arent as good as the Philly Flyers, lol)

Yes, you are doing something wrong. You cannot change individual pages when they were created using a template.

Change the template, not the individual page.

stevenm21
04-25-2006, 12:45 PM
I have got editable regions though so shouldn't changes be ok in there?

domedia
04-25-2006, 12:49 PM
I have got editable regions though so shouldn't changes be ok in there? Correct

stevenm21
04-25-2006, 05:47 PM
so why when I make any changes to the template file, and then update the other pages with these changes, the drop-down menu's no longer work

stevenm21
05-01-2006, 05:07 PM
anyone know the answer???

stevenm21
05-15-2006, 02:26 PM
anyone able to help me with this?

I am still having the problem.

when I update my template, any page that uses my template and has a drop down menu in it, the menu stops working, I then need to add all the menu's in all over again

domedia
05-15-2006, 02:53 PM
'stop working' is a little too vague :) You're not even describing the error.
Remember, you're asking a technical question, and unless you can give a url or code it's just going to be guesswork.
My guess: Check relative/absolute paths in template ;)

stevenm21
05-15-2006, 02:57 PM
the menu's when working should do the following:

choose an option from the drop down menu
you are taken to that page
that page then shown

but the above actions do not happen if I update the template, in order to get the pages (that use the template) working again, I need to add all the menu's again

stevenm21
05-18-2006, 01:21 PM
anyone, able to advise?

dthomsen8
05-18-2006, 03:39 PM
anyone, able to advise?

Have you tried HTML and CSS validation at www.w3.org to see what might be wrong?

edbr
05-19-2006, 01:01 AM
I am not sure this is relavant but I had a lot of problems with drop down menus when there was a conflict . I solved it by copying the function from the code and pasting over all other instances of the menu.
Of course if the menu was only in the template this would not happen

kona72
05-19-2006, 04:43 AM
If i am reading this correct i just had the same issue.
What i had to do is because the template folder is where the initial 'mm_menu.js' file is generated you will have to copy it and place that copy in the root folder 'outside' of the template folder as well. And then everytime after this that you make a change to the drop down menu, simply copy the one inside the templates folder and copy it out again and everything should work just fine.

stevenm21
05-29-2006, 11:45 AM
the mm_menu.js what exactly should be included into this?

I dont suppose you can give me a break down of the code? PLEASE

I am not sure if this is the same issue, as my template file does not have any drop down menu's, its just some pages that use the template file.

but I will give anything a try, I am being driven mad!!!

kona72
05-29-2006, 03:56 PM
Can you post your code?

Thanks

stevenm21
05-29-2006, 04:50 PM
code for an example page of the drop down menu can be seen here

http://www.ukicehockey.com/1930.html

the code for my template is:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
<title>UK Ice Hockey Statistics</title>
<script language="javascript" type="text/javascript" src="java/java.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<link rel="stylesheet" href="/style.css" type="text/css" />
<style type="text/css">
<!--
.style3 {font-family: Arial, Helvetica, sans-serif; font-size: 9px; }
.style6 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
}
.style7 {font-size: 10px}
.style8 {color: #0000FF}
a:link {
color: #0000FF;
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: underline;
color: #FF0000;
}
a:active {
text-decoration: none;
}
.style13 {font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; }
body,td,th {
font-family: Verdana, Lucida Sans, Arial, Geneva, Helvetica, Helv, Myriad Web, Syntax, sans-serif;
color: #000000;
}
.style14 {color: #FFFF00}
.style15 {color: #FFFF66}
.style16 {color: #0000FF; font-weight: bold; }
-->
</style>
</head>

<body>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="100" colspan="3" valign="middle" background="../Images/uk-ice-hockey-bannertile.jpg" class="pos1"><div align="center">../Images/UKIcehockeylogo2.jpg (../index.html)</div></td>
</tr>
<td>
<table width="100%" border="1" cellpadding="0" cellspacing="0">
<tr>

<td width="150" valign="top" bgcolor="#D0E1F5">

<div>
<div class="headbox">SNL Team Sites (http://www.scottishicehockey.co.uk)</div>
Aberdeen Lynx (http://www.scottishicehockey.co.uk/)
Dundee Stars (http://www.dundeestars.com)
Dundee Tigers (http://www.dundeetigers.biz)
Edinburgh Capitals (http://www.snl-capitals.com/snl-development/home.htm)
Fife Flyers (http://www.flyershockey.co.uk)
Moray Tornadoes (http://www.scottishicehockey.co.uk/)
North Ayr Bruins (http://www.naihc.co.uk/)
Paisley Pirates (http://groups.msn.com/paisleypirates)
Solway Sharks (http://www.solwaysharks.co.uk)

<div class="headbox">EIHL Team Sites (http://www.eliteleague.co.uk)</div>
Basingstoke Bison (http://www.bstokebison.co.uk/home.php)
Belfast Giants (http://www.belfastgiants.co.uk/)
Cardiff Devils (http://www.thecardiffdevils.com/)
Coventry Blaze (http://www.coventryblaze.co.uk/)
Edinburgh Capitals (http://www.edinburgh-capitals.com)Manchester Phoenix (http://www.manchesterphoenix.co.uk/)
Newcastle Vipers (http://www.newcastlevipers.com/)
Nottingham Panthers (http://www.panthers.co.uk/)
Sheffield Steelers (http://www.sheffieldsteelers.co.uk/)


<div class="dynacontent">
<table width="137" border="1">
<tr>
<td width="127"><div align="justify">Questions or Comments? Advice for me or from me? Please contact me (../Contact.html).
</div>
</td>
</tr>
</table>
</div>
</div>

<p align="center">

<a href="http://www.csnewmedia.co.uk" target="_blank">
/Images/CSNewMedia3.gif </a> </p>


<p align="center"><a href="http://www.fortressodyssey.co.uk" target="_blank">
/Images/FortressOdyssey.gif</a></p>
</td>

<td valign="top"> <p align="center"><span class="style15">
<div align="left">Home (../index.html)
<a href="../FifeFlyers.html" class="topmenu" title="Fife Flyers Information & History"> Fife
Flyers </a>
Team Statistics (../Teams.html)
<a href="../News.html" class="topmenu" title="Hockey News"> Hockey
News </a>
Fixtures (../Fixtures.html)
Standings (../League.html)
Forum (http://www.myworld21.co.uk/newForum/)
<a href="../Contact.html" class="topmenu" title="Contact me"> Contact
Me</a>


</div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10" valign="top" bgcolor="#FFFFFF">
<td width="595" valign="top" class="mainbox">



</p>


</p>


</p>


</p>


</p>



<td width="170" valign="top" class="mainbox"><div class="dynacontent">

<div align="center" class="dynabox style6">



<a href="http://www.spreadfirefox.com/?q=affiliates&amp;id=147943&amp;t=81">http://sfx-images.mozilla.org/affiliates/Buttons/80x15/blue_1.gif
</a>
</p>
</div>

<p align= "center">
<script language="JavaScript">
var TheFontFace = "Arial";
var TheFontColor = "#000000";
var TheFontSize = "3";
var TheFontStyle = "bolditalic";

// Set the separator between the date elements;
// usually use either - or /.

var TheSeparator = ".";

// Show or do not show the day of the week; set
// yes to show, no not to show.

var ShowDay ="no";

// Do Not Edit Below This Line
// ==============================================

var Days = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
var TheDate = new Date();

var TheWeekDay = TheDate.getDay();
var Day ="";
if (ShowDay == "yes"){
Day = Days[TheWeekDay];
Day += " ";}


var TheMonthDay = TheDate.getDate();
if (TheMonthDay < 10) TheMonthDay = "0" + TheMonthDay;

var TheMonth = TheDate.getMonth() + 1;
if (TheMonth < 10) TheMonth = "0" + TheMonth;

var TheYear = TheDate.getYear();
if (TheYear < 1000) TheYear += 1900;

var FontTagLeft = "";
var FontTagRight = "";

if (TheFontStyle == "bold"){
FontTagLeft = "";
FontTagRight ="";}

var D = "";
D += "<font color='"+TheFontColor+"' face='"+TheFontFace+"' size='"+TheFontSize+"'>";
D += FontTagLeft+Day+TheMonthDay+TheSeparator+TheMonth+ TheSeparator+TheYear+FontTagRight;
D += "</font>";

document.write(D);
</script>
</p>


<div class="headbox">
<div align="center" class="style7">Elite League Table</div>
</div>
<div class="dynacontent">
<p align="center">
<a href="http://www.eliteleague.co.uk" target="_blank">
/Images/eihl_logo_small.gif</a></p>
<div align="center">
<table width="132" border="0">

<tr>
<td width="56" bgcolor="#FF0000"><span class="style13">TEAM</span></td>
<td width="31" bgcolor="#FF0000"><div align="center" class="style13">GP</div></td>
<td width="31" bgcolor="#FF0000"><div align="center" class="style13">PTS</div></td>
</tr>

<tr>
<td bgcolor="#FFFFFF"><span class="style3">Basingstoke</span></td>
<td bgcolor="#FFFFFF"><div align="center" class="style3">0</div></td>
<td bgcolor="#FFFFFF"><div align="center" class="style3">0</div></td>
</tr>

<tr>
<td bgcolor="#D0E1F5"><span class="style3">Belfast</span></td>
<td bgcolor="#D0E1F5"><div align="center" class="style3">0</div></td>
<td bgcolor="#D0E1F5"><div align="center" class="style3">0</div></td>
</tr>

<tr>
<td bgcolor="#FFFFFF"><span class="style3">Cardiff</span></td>
<td bgcolor="#FFFFFF"><div align="center" class="style3">0</div></td>
<td bgcolor="#FFFFFF"><div align="center" class="style3">0</div></td>
</tr>

<tr>
<td bgcolor="#D0E1F5"><span class="style3">Coventry</span></td>
<td bgcolor="#D0E1F5"><div align="center" class="style3">0</div></td>
<td bgcolor="#D0E1F5"><div align="center" class="style3">0</div></td>
</tr

><tr>
<td bgcolor="#FFFFFF"><span class="style3">Edinburgh</span></td>
<td bgcolor="#FFFFFF"><div align="center" class="style3">0</div></td>
<td bgcolor="#FFFFFF"><div align="center" class="style3">0</div></td>
</tr><tr>
<td bgcolor="#D0E1F5"><span class="style3">Manchester</span></td>
<td bgcolor="#D0E1F5"><div align="center" class="style3">0</div></td>
<td bgcolor="#D0E1F5"><div align="center" class="style3">0</div></td>
</tr>

<tr>
<td bgcolor="#FFFFFF"><span class="style3">Newcastle</span></td>
<td bgcolor="#FFFFFF"><div align="center" class="style3">0</div></td>
<td bgcolor="#FFFFFF"><div align="center" class="style3">0</div></td>
</tr>

<tr>
<td bgcolor="#D0E1F5"><span class="style3">Nottingham</span></td>
<td bgcolor="#D0E1F5"><div align="center" class="style3">0</div></td>
<td bgcolor="#D0E1F5"><div align="center" class="style3">0</div></td>
</tr>

<tr>
<td bgcolor="#FFFFFF"><span class="style3">Sheffield</span></td>
<td bgcolor="#FFFFFF"><div align="center" class="style3">0</div></td>
<td bgcolor="#FFFFFF"><div align="center" class="style3">0</div></td>
</tr>

<tr>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</div>
</div>

<div class="headbox">
<div align="center"><span class="style7">
</span>
<span class="style7">SNL League Table </span></div>
</div>
<div class="dynacontent">
<p align="center">

<a href="http://www.scottishicehockey.co.uk" target="_blank">
/Images/SNL.gif</a></p>
<div align="center">

<table width="132" border="0">
<tr>
<td width="56" bgcolor="#FF0000"><span class="style13">TEAM</span></td>
<td width="31" bgcolor="#FF0000"><div align="center" class="style13">GP</div></td>
<td width="31" bgcolor="#FF0000"><div align="center" class="style13">PTS</div></td>
</tr>

<tr>
<td bgcolor="#FFFFFF"><span class="style3">Aberdeen</span></td>
<td bgcolor="#FFFFFF"><div align="center" class="style3">0</div></td>
<td bgcolor="#FFFFFF"><div align="center" class="style3">0</div></td>
</tr>

<tr>
<td><span class="style3">Edinburgh</span></td>
<td><div align="center" class="style3">0</div></td>
<td><div align="center" class="style3">0</div></td>
</tr>

<tr>
<td bgcolor="#FFFFFF"><span class="style3">Fife</span></td>
<td bgcolor="#FFFFFF"><div align="center" class="style3">0</div></td>
<td bgcolor="#FFFFFF"><div align="center" class="style3">0</div></td>
</tr>

<tr>
<td bgcolor="#D0E1F5"><span class="style3">Moray</span></td>
<td bgcolor="#D0E1F5"><div align="center" class="style3">0</div></td>
<td bgcolor="#D0E1F5"><div align="center" class="style3">0</div></td>
</tr>

<tr>
<td bgcolor="#FFFFFF"><span class="style3">North Ayr </span></td>
<td bgcolor="#FFFFFF"><div align="center" class="style3">0</div></td>
<td bgcolor="#FFFFFF"><div align="center" class="style3">0</div></td>
</tr>

<tr>
<td bgcolor="#D0E1F5"><span class="style3">Paisley</span></td>
<td bgcolor="#D0E1F5"><div align="center" class="style3">0</div></td>
<td bgcolor="#D0E1F5"><div align="center" class="style3">0</div></td>
</tr>

<tr>
<td bgcolor="#FFFFFF"><span class="style3">Solway</span></td>
<td bgcolor="#FFFFFF"><div align="center" class="style3">0</div></td>
<td bgcolor="#FFFFFF"><div align="center" class="style3">0</div></td>
</tr>

<tr>
<td bgcolor="#D0E1F5"><span class="style3">Stars</span></td>
<td bgcolor="#D0E1F5"><div align="center" class="style3">0</div></td>
<td bgcolor="#D0E1F5"><div align="center" class="style3">0</div></td>
</tr>

<tr>
<td bgcolor="#FFFFFF"><span class="style3">Tigers</span></td>
<td bgcolor="#FFFFFF"><div align="center" class="style3">0</div></td>
<td bgcolor="#FFFFFF"><div align="center" class="style3">0</div></td>
</tr>

<tr>
<td bgcolor="#D0E1F5"></td>
<td bgcolor="#D0E1F5"></td>
<td bgcolor="#D0E1F5"></td>
</tr>
</table>
</div>
<div align="center"><a href="http://www.eurohockey.net" target="_blank"onMouseOver="window.status='European Hockey.Net - Hockey sans frontières!';return true"onMouseOut="window.status='';return true">
http://www.eurohockey.net/banner.jpg</a> </div>
</div>
</div>
</td>
</tr>
</table>


</td>
</tr>
</table>
</td>
</tr>


<tr class="pos1">
<td height="20" colspan="2" class="head" align="right"><div align="center">UKIceHockey.com &copy; 2006 </div> </td>
</tr>
</table>
</body>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-132668-2";
urchinTracker();
</script>
</html>

stevenm21
05-31-2006, 02:19 PM
any news kona72? have you been able to spot anything that I need to put in to stop this problem?

stevenm21
06-06-2006, 05:31 PM
seeing as the problem is still happening, can I ask, is it possible to update pages that use the template but update just certain pages (so I can chose not to update the pages that have the drop down menu's?)