• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Nested Template Not Updating

Explorer ,
Feb 17, 2019 Feb 17, 2019

Copy link to clipboard

Copied

I have created a template named Location Page, that is based upon another template called Menu and Footer Template. I have updated the style for #menu to "position: fixed;" on the original template Menu and Footer Tempate. However, the Location Page is not updating. I have tried manually updating both pages, and tried restarting computer/Dreamweaver see if a cache was still being used.

Menu and Footer Code:

<!doctype html>

<html>

<head>

<meta charset="utf-8">

<!-- TemplateBeginEditable name="doctitle" -->

<title>Team building events and activities | Espionage Missions</title>

<!-- TemplateEndEditable -->

<!-- TemplateBeginEditable name="Meta Description" -->

<meta name="description" content="Our mission, should you choose to accept it, is to provide your team with some competitive outdoor fun. Espionage missions team building events and activities."/>

<!-- TemplateEndEditable -->

<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">

<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">

<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">

<link rel="manifest" href="/site.webmanifest">

<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#a12929">

<meta name="msapplication-TileColor" content="#000000">

<meta name="theme-color" content="#000000">

<link rel="stylesheet" type="text/css" href="/css/main.css">

<!-- TemplateBeginEditable name="internal css" -->

<style>

body {

background: #000000 url("/images/background.jpg") no-repeat fixed;background-size:cover;

min-width: 960px; margin: 0px;

}

@Font-face {

  font-family: 'Boxed-Medium';

  src: url("/fonts/boxed-medium.woff");

}

@Font-face {

  font-family: 'Boxed-Bold';

  src: url("/fonts/boxed-bold.woff");

  font-weight: bold;

}

#menu {

position: fixed;

text-align: center;

background: url('/images/background-menu.jpg') no-repeat fixed;

background-size: cover;

width: 100%;

height: 51px;

padding-bottom: 10px;

min-width: 960px;

}

#menu a {

position: relative;

text-decoration: none;

color: white;

padding-right: 40px;

font-family: "Arial";

font-size: 12px;

line-height: 18px;

}

#menu a:hover {

color: red;

}

#menu-rollover a{

position: relative;

left: -32px;

top: 14px;

display: inline-block;

padding-left: 0px;

padding-right: 0px;

width: 92px;

height: 29px;

background: url('/images/logo-menu-sprite.png') 0 -29px;

}

#menu-rollover a:hover{

background: url('/images/logo-menu-sprite.png') 0 0;

}

#above the fold{

}

</style>

<!-- TemplateEndEditable -->

</head>

<body>

<div id="menu">

<a href="/who-is-it-for.html" style="letter-spacing: 3px;">WHO IS IT FOR</a>

<a href="/contact.html" style="letter-spacing: 3px; left: -10px;">BOOK NOW</a>

<a href="/team-building-locations.html" style="letter-spacing: 5px; left: -22px;">LOCATIONS</a>

<span id="menu-rollover">

<a href="/index.html" id="rollover"></a>

</span>

<a href="/team-building-photos.html" style="letter-spacing: 5px; left: -2px;">PHOTOS</a>

<a href="/team-building-pricing.html" style="letter-spacing: 5px; left: -8px;">PRICING</a>

<a href="/team-building-locations.html" style="letter-spacing: 5px; left: -8px;">NEWS</a>

<a href="/faqs.html" style="letter-spacing: 5px; padding-right: 0px;">FAQ</a>

</div>

<!--above the fold content-->

<!-- TemplateBeginEditable name="Above the Fold" --><span id="above the fold"></span><!-- TemplateEndEditable -->

<!--external style sheet-->

<div id="footer">

<a href="/faqs.html">overview download and FAQ's</a> | <a href="/terms-conditions.html"> terms and conditions</a> | <a href="/privacy.html">privacy</a> | <a href="/contact.html">contact</a>

<br>

<a href="https://twitter.com/EspionageUK?ref_src=twsrc%5Etfw" class="twitter-follow-button" data-show-count="false">Follow @EspionageUK</a>

<a href="https://www.facebook.com/EspionageManchester/"><img src="/images/facebook.jpg" alt="Facebook link" width="21px" height="21px"></a>

</div>

<!--Twitter folllwow button-->

<script src="https://platform.twitter.com/widgets.js"></script>

<script>

//Google Analytics

  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i=i||function(){

  (i.q=i.q||[]).push(arguments)},i.l=1*new Date();a=s.createElement(o),

  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)

  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-44217225-1', 'auto');

  ga('send', 'pageview');b

</script>

</body>

</html>

Location Page Code

<!doctype html>

<html><!-- InstanceBegin template="/Templates/Menu and Footer Template.dwt" codeOutsideHTMLIsLocked="false" -->

<head>

<meta charset="utf-8">

<!-- InstanceBeginEditable name="doctitle" -->

<title>Team building events and activities | Espionage Missions</title>

<!-- InstanceEndEditable -->

<!-- InstanceBeginEditable name="Meta Description" -->

<meta name="description" content="Our mission, should you choose to accept it, is to provide your team with some competitive outdoor fun. Espionage missions team building events and activities."/>

<!-- InstanceEndEditable -->

<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">

<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">

<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">

<link rel="manifest" href="/site.webmanifest">

<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#a12929">

<meta name="msapplication-TileColor" content="#000000">

<meta name="theme-color" content="#000000">

<link rel="stylesheet" type="text/css" href="/css/main.css">

<!-- InstanceBeginEditable name="internal css" -->

<style>

body {

background: #000000 url("/images/background.jpg") no-repeat fixed;background-size:cover;

min-width: 960px; margin: 0px;

}

@Font-face {

  font-family: 'Boxed-Medium';

  src: url("/fonts/boxed-medium.woff");

}

@Font-face {

  font-family: 'Boxed-Bold';

  src: url("/fonts/boxed-bold.woff");

  font-weight: bold;

}

#menu {

text-align: center;

background: url('/images/background-menu.jpg') no-repeat fixed;

background-size: cover;

width: 100%;

height: 51px;

padding-bottom: 10px;

min-width: 960px;

}

#menu a {

position: relative;

text-decoration: none;

color: white;

padding-right: 40px;

font-family: "Arial";

font-size: 12px;

line-height: 18px;

}

#menu a:hover {

color: red;

}

#menu-rollover a{

position: relative;

left: -32px;

top: 14px;

display: inline-block;

padding-left: 0px;

padding-right: 0px;

width: 92px;

height: 29px;

background: url('/images/logo-menu-sprite.png') 0 -29px;

}

#menu-rollover a:hover{

background: url('/images/logo-menu-sprite.png') 0 0;

}

#main-content{

width: 960px;

margin: 0 auto;

}

#title {

padding-top: 15px;

width: 760px;

margin: 0 auto;

}

#title h1{

display: inline;

font-family: 'Boxed-Medium';

color: white;

font-size: 29px;

line-height: 26px;

letter-spacing: 1px;

text-align: right;

vertical-align: top;

position: relative;

top: 15px;

}

#above-the-fold1 #openpara{

display: inline-block;

width: 524px;

height: 171px;

background-color: rgba(29,26,26,0.7);

margin-right: 48px;

margin-bottom: 80px;

padding-top: 10px;

padding-right: 10px;

padding-left: 15px;

padding-bottom: 15px;

border: 1px solid black;

font-family: "Boxed-Medium";

color: white;

font-size: 14px;

letter-spacing: 1px;

line-height: 17px;

vertical-align: top;

}

#above-the-fold1 #welcome-slideshow{

border:1px solid red;

width: 355px;

height: 196px;

text-align: right;

}

#above-the-fold2 #secondpara{

display: inline-block;

width: 445px;

height: 305px;

background-color: rgba(29,26,26,0.7);

margin-left: 40px;

margin-bottom: 50px;

padding-top: 40px;

padding-right: 30px;

padding-left: 35px;

border: 1px solid black;

font-family: "Boxed-Medium";

color: white;

font-size: 14px;

letter-spacing: 1px;

line-height: 17px;

vertical-align: top;

}

</style>

<!-- InstanceEndEditable -->

</head>

<body>

<div id="menu">

<a href="/who-is-it-for.html" style="letter-spacing: 3px;">WHO IS IT FOR</a>

<a href="/contact.html" style="letter-spacing: 3px; left: -10px;">BOOK NOW</a>

<a href="/team-building-locations.html" style="letter-spacing: 5px; left: -22px;">LOCATIONS</a>

<span id="menu-rollover">

<a href="/index.html" id="rollover"></a>

</span>

<a href="/team-building-photos.html" style="letter-spacing: 5px; left: -2px;">PHOTOS</a>

<a href="/team-building-pricing.html" style="letter-spacing: 5px; left: -8px;">PRICING</a>

<a href="/team-building-locations.html" style="letter-spacing: 5px; left: -8px;">NEWS</a>

<a href="/faqs.html" style="letter-spacing: 5px; padding-right: 0px;">FAQ</a>

</div>

<!--above the fold content-->

<!-- InstanceBeginEditable name="Above the Fold" -->

<div id="title">

<img src="/images/logo-large.png">

<h1>Aberdeen Team Building Events</h1>

</div>

<div id="main-content">

<div id="above-the-fold1">

<span id="openpara">

Our  team building events are fast paced urban challenges incorporating modern technology. Set around the Granite City of Aberdeen. Your group will be spilt into teams, who then compete against one another by completing various challenges to win iconic sectors of Aberdeen.

<p>

Likened to a mixture between an escape room and a treasure hunt, your teams challenges will include; code- breaking, foreign-translation, logic-puzzles, forgery tasks, and time-trials. These varied, engaging and fun tasks ensure that each team must work effectively to beat the other teams to the sectors and win the mission

</p>

</span>

<img src="/images/welcome-slieshow.gif" id="welcome-slideshow">

</div>

<div id="above-the-fold2">

<iframe src="https://www.google.com/maps/d/embed?mid=1JU0YGD-qwKOeXb5jwz_nZ3v_iTk&hl=en" width="400" height="340"></iframe>

<span id="secondpara"><p>Your mission is tracked online so the teams can see their progress (and their enemies) using our special mapping scoreboard and GPS handsets. Strong teamwork, determination, and intelligent strategy are essential.</p>

<br>

<p>The missions are ideal for team building for companies based in  or around Aberdeen.  They also work equally as well as fun day or evening out to reward your team.  Please see the map to the right to see the different districts used.</p>

<br>

<p>To book your <a href="/contact.html">Aberdeen team building event</a></p>

<p>Find out more by visiting our homepage.</p>

</div>

<div id="more-about">

<h3>More about team building in Aberdeen</h3>

<p>Events are played around Aberdeen city centre, therefore are perfect for Aberdeen based companies which require the event to start and end at your office, Team building Aberdeen is also perfect for team who are visiting for the day or weekend.</p>

<p>Espionage team building events can also be completed in the following locations:- team building in Edinburgh, team building in Glasgow, team building in Leeds, team building in Liverpool, team building London and many other areas in England, Scotland and Wales.</p>

<p>See the locations section for more details</p>

</div>div>

</div><!-- InstanceEndEditable -->

<!--external style sheet-->

<div id="footer">

<a href="/faqs.html">overview download and FAQ's</a> | <a href="/terms-conditions.html"> terms and conditions</a> | <a href="/privacy.html">privacy</a> | <a href="/contact.html">contact</a>

<br>

<a href="https://twitter.com/EspionageUK?ref_src=twsrc%5Etfw" class="twitter-follow-button" data-show-count="false">Follow @EspionageUK</a>

<a href="https://www.facebook.com/EspionageManchester/"><img src="/images/facebook.jpg" alt="Facebook link" width="21px" height="21px"></a>

</div>

<!--Twitter folllwow button-->

<script src="https://platform.twitter.com/widgets.js"></script>

<script>

//Google Analytics

  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i=i||function(){

  (i.q=i.q||[]).push(arguments)},i.l=1*new Date();a=s.createElement(o),

  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)

  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-44217225-1', 'auto');

  ga('send', 'pageview');b

</script>

</body>

<!-- InstanceEnd --></html>

Views

441

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 17, 2019 Feb 17, 2019

Copy link to clipboard

Copied

Sorry if this sounds harsh but  never, never, ever nest templates.  I don't care how complex you think your site is, you do not need to nest templates ever.   Nesting causes nothing but  problems.  Besides, it defeats the whole point of using a template in the 1st place. 

Your Template should contain all CSS, scripts and site wide elements like your  header, navigation, footer and optional regions for elements  that may appear on some pages but not others.  All the rest will be inside Editable Regions for page specific content. 

How to design web pages based on Dreamweaver templates

Now might be a good time to learn about Server-side Includes (SSIs) too.  These work on the server so you don't have to re-publish your entire site when making updates.  A huge time saver.

Server-Side Includes with PHP

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 17, 2019 Feb 17, 2019

Copy link to clipboard

Copied

templates will massively help with reducing the maintenance required. I have limited resources available to me.  Dreamweaver has guides to nesting templates. Is it a buggy feature? I am struggling to find much information it.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 17, 2019 Feb 17, 2019

Copy link to clipboard

Copied

Templates are fine although I never use them. I prefer Server Side Includes.

Nested templates are a convoluted DW feature guaranteed to confuse you and give you maintenance headaches for as long as you deploy them. They never really took off as a DW feature so resources and tutorials are limited.

Server side includes are free. They're not a DW-specific feature as such but you can use them in DW. You just need to learn how to use them. You'll never regret it. They're simple and greatly reduce maintenance, far more than even DW Templates.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 17, 2019 Feb 17, 2019

Copy link to clipboard

Copied

Templates are OK.  Although once you start using Server-side Includes, you won't  need Templates anymore.

Nesting isn't buggy.  But most people don't consider what nesting does.   By definition, a template.dwt has  total authority over child pages that are spawned from it.   When you nest templates, you weaken that authority by giving some of it to a sub-ordinate template.  That's when things start to get complicated.  Which template should you edit?  From which do you update child pages? 

It's a  lot simpler to keep everything under the control of 1 template.  Don't nest them.

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 18, 2019 Feb 18, 2019

Copy link to clipboard

Copied

I've read that SSI can impact SEO and do not always work with screen readers. If this is the case then SSI would not be a viable option for me. I basically have about 30 pages which are almost identical. I want a template for the sites background, header and footer. These will be common to all pages. I then want a template for the 30 identical pages.

Should dreamweaver be able to facilitate this and if so why isn't in working for me in the above code?

Are there any alternative options that would minimize the workload for maintenance and updates that do not impact SEO or impact accessibility?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 18, 2019 Feb 18, 2019

Copy link to clipboard

Copied

Peter2035  wrote

I've read that SSI can impact SEO and do not always work with screen readers.

Untrue.   SSI is a  server-side technology that has zero impact on search engine results or web accessibility.   

Should dreamweaver be able to facilitate this and if so why isn't in working for me in the above code?

Yes.  A Dreamweaver template will do exactly what you need if you  build it correctly which represents about 80% of your development time.

1) Define your site folder.

2) Jump start your project with a pre-built responsive layout in DW.  Go to File > New....  see screenshot.

3) Immediately save your newly created page as my_test_page.html

4) See link below for further instructions.

Alt-Web Design & Publishing: Working With Dreamweaver Templates (.dwt files)

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 18, 2019 Feb 18, 2019

Copy link to clipboard

Copied

LATEST

Peter2035  wrote

I've read that SSI can impact SEO and do not always work with screen readers.

Got a link to what you were reading? I'm curious to see what arguments they put forward to support such claims.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines