Creative COW SIGN IN :: SPONSORS :: ADVERTISING :: ABOUT US :: CONTACT US :: FAQ
Creative COW's LinkedIn GroupCreative COW's Facebook PageCreative COW on TwitterCreative COW's Google+ PageCreative COW on YouTube
ADOBE DREAMWEAVER:HomeDreamweaver ForumDreamweaver TutorialsFAQAdobe FlashWeb Design

Template not updating child pages

COW Forums : Adobe Dreamweaver

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Share on Facebook
Jeaneene ScaranoTemplate not updating child pages
by on Jun 11, 2009 at 5:47:03 pm

Okay, so I'm teaching myself Dreamweaver CS4, and have been following tutorials very closely as to how to create a page that uses a template so that when you change the template, the pages created from that template will update. I've used Adobe's tutorial, a Dreamweaver CS4 tutorial, and another tutorial online ... all with no luck.

The problem I am having is that no matter WHAT I do to the template or to my child pages, my child pages REFUSE to update. I'm creating a new page from that template, I'm applying the template to the new page, I make sure to update the current page (and ALL pages) and still nothing.

Moreover, when I update "all" the pages, this is an example of the "log" that I get:

Updating C:Documents and SettingsjscaranoDesktopWork FolderGarden Club
Done.
files examined: 2
files updated: 0
files which could not be updated: 0
total time: (0:00:00)

So, why is it not updating the files and why is it not saying that it could not update the files. In reality, if it couldn't update the pages, shouldn't that "files which could not be updated" change?

ANY help would be greatly appreciated. Thank you in advance!


Return to posts index
Reply   Like  

Richard WilliamsRe: Template not updating child pages
by on Jun 11, 2009 at 7:32:39 pm

when you are creating a template page, are you using editable regions for everything that you are inserting into the template...?

A posted example would really help, or if you paste your page code in here that would help to see

Richard Williams


Return to posts index
Reply   Like  

Jeaneene ScaranoRe: Template not updating child pages
by on Jun 11, 2009 at 7:37:08 pm

Yup - I'm using editable regions. I haven't put a lot of content in here yet because I wanted to get the template working before I created a bunch of pages. My test area was mainly the navigation area to the left. I've tried a navigation bar, I've tried using "buttons", and even just plain text ... Nothing is working :-(

Here's the 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"><!-- InstanceBegin template="/Templates/gardenclubtemplate.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
<link href="twoColLiqLtHdr.css" rel="stylesheet" type="text/css" /><!--[if IE]>
<style type="text/css">
/* place css fixes for all versions of IE in this conditional comment */
.twoColLiqLtHdr #sidebar1 { padding-top: 30px; }
.twoColLiqLtHdr #mainContent { zoom: 1; padding-top: 15px; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]-->
</head>

<body class="twoColLiqLtHdr">

<div id="container">



<div id="header">
<!-- InstanceBeginEditable name="Header" -->
<div align="center"><img src="GEWAClubBannerWithLogos-Smaller.gif" width="1000" height="179" alt="GEWA Garden Club Banner" />
</div>
<hr color="green"; width="100%;" size="5;" />
<!-- InstanceEndEditable -->
<!-- end #header -->
</div>




<div id="sidebar1">
<!-- InstanceBeginEditable name="Navigation" -->
<img src="Home.gif" width="220" height="35" alt="Home" /><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />

<!-- InstanceEndEditable -->
<!-- end #sidebar1 -->
</div>



<div id="mainContent">
<!-- InstanceBeginEditable name="MainContent" -->
<h2><i>Main Content</i></h2>
<p>Welcome to Goddard's Garden Club!</p>
<br />
<h3>H2 level heading </h3>
<p>Feel free to provide suggestions and/or recommendations to help us continually improve our site!<br />
<hr color="green"; width="100%;" size="5;" />
<!-- InstanceEndEditable -->
<!-- end #mainContent -->
</div>




<br class="clearfloat" />


<div id="footer">
<!-- InstanceBeginEditable name="Footer" -->
<p>Web Mistress: Jeaneene Scarano<br />
Last Edited: June 11, 2009</p>
<!-- InstanceEndEditable -->
<!-- end #footer -->
</div>


<!-- end #container -->
</div>


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


Return to posts index
Reply   Like  


cowcowcowcowcow
Richard WilliamsRe: Template not updating child pages
by on Jun 11, 2009 at 7:44:17 pm

yeh... thats the problem...

An editable region is a region which will not update.

You create you template as you would a normal page in dreamweaver, with NO editable regions for the things you want to stay static throughout.

The editable region is for areas that will change from page to page. So, you put your nav bar in as normal and you banner, but you put the text in an editable region, thus that region on all your chaild pages are editable from page to page.



Richard Williams


Return to posts index
Reply   Like  
+1

Jeaneene ScaranoRe: Template not updating child pages
by on Jun 11, 2009 at 8:51:43 pm

But what if I need to make changes to the navigation bar? What do I do then?


Return to posts index
Reply   Like  

Richard WilliamsRe: Template not updating child pages
by on Jun 11, 2009 at 10:22:25 pm

then you just change it in the template page like you would change anything else normally, trust me, give it a go

Richard Williams


Return to posts index
Reply   Like  


Jeaneene ScaranoRe: Template not updating child pages
by on Jun 12, 2009 at 4:15:34 pm

WOW do I feel dumb! Thank you much. For some reason I was under the impression that if I didn't make a region "editable" in the template that I wouldn't be able to change the template. Thank you so much!


Return to posts index
Reply   Like  

Richard WilliamsRe: Template not updating child pages
by on Jun 12, 2009 at 7:43:55 pm

no problem at all, if you don't ask then you don't find out! Are you happy now with the understanding or would you like me to post an example?

Richard Williams


Return to posts index
Reply   Like  

DeJoseph ProductionsRe: Template not updating child pages
by on Aug 4, 2009 at 10:03:56 pm

So here is an interesting dilemma:

What if I have a navigation bar where I want a "down image" to display for the page that is currently being viewed. (i.e.: home (purple icon) about (purple icon) services (green icon) contact (purple icon) when the services page is being viewed)? Can I still include the navigation bar in the locked region of the template? And, if yes, how do I change it for each page?

Thanks.
Alana



Return to posts index
Reply   Like  


Fernando MolRe: Template not updating child pages
by on Aug 5, 2009 at 4:57:46 am

You can do that, but you'll need some programming language. Like PHP.

Are you familiar with any?

You can compare each link with the actual page, and if the result is true you can display a CSS class for that link. Then, add a CSS class rule with the changes you want.

I haven't do that in a spry, but using PHP in a regular ul menu the code will be something like this:

<div id="backMenu">
<?php
function menup($page) {
if($_SERVER['PHP_SELF'] == $page){
echo "class=\"menuHLT\"";
}
}
?>
<ul id="mainmenu">
<li <?php menup("pageone.php");?>><a href="pageone.php">Pageone</a></li>
<li <?php menup("Pagetwo.php");?>><a href="Pagetwo.php">Pagetwo</a></li>
</ul>
</div>


*Remember to rate the posts. This is a free service. Free for you and free for us. We are here just for the fun.


Return to posts index
Reply   Like  

Jan LeeRe: Template not updating child pages
by on Dec 13, 2011 at 7:41:04 am

Great posts! I'm new to all this and I have been bumping into you all quite often lately :O)


Return to posts index
Reply   Like  

Sam BrownRe: Template not updating child pages
by on Feb 13, 2010 at 4:11:01 am

YOU ARE THE MAN! That is the clearest, most concise explanation of the Template I've ever heard. I've also been self-teaching and had the same misconception as the person who asked you this question. It's kind of like "Editable Region " in reverse thinking. Hmmm. Thank you for the info! It helped a LOT!


Return to posts index
Reply   Like  


Lynn BerkowitzRe: Template not updating child pages
by on Jan 6, 2010 at 8:28:45 pm

Sorry to bump into this conversation so late. I am redesigning an old web archive and created new templates in CS4. But when I update the template, the attached pages do not automatically update! What do I need to do in order to get these pages to recognize the new template?

When I open each page individually and choose Modify/Template/Update Current page it will update, but obviously don't want to do it this way.

Thanks for any help.


Return to posts index
Reply   Like  

Fernando MolRe: Template not updating child pages
by on Feb 13, 2010 at 3:09:42 pm

The template indications are written on each child page as a comment. Sometimes DW lost track of them. Maybe if you update the cache the problem will be solved.

To do that go to the menu

>Site >Advanced >Recreate Site Cache

*Always share a link to your site and rate the posts. This is a free service for you and for us.


Return to posts index
Reply   Like  

Lynn BerkowitzRe: Template not updating child pages
by on Feb 14, 2010 at 12:09:07 am

thanks for your comment!

I travelled to California and updated my web pages remotely, and there they were!

Coming home, there they were NOT, according to DW.

Well, according to the ORIGINAL web site, in Michigan. And according to the secondary website, in LA, on my laptop.

All "update" in DW!

When I come back to the ORIGINAL website, "update pages" means nothing.

Well, crap.

Why did I spend all this money to upgrade to CS4 from Expressions Web? Hello! Tell me!!


Return to posts index
Reply   Like  


Rosie HerrRe: Template not updating child pages
by on Mar 19, 2010 at 12:08:58 am

I have a variation to this. I created my template and everything updates. However, when I try to go and add a spry item, e.g. spry validation text area or a form, it tell me, "Required links could not be edited because the <head> tag is in a locked region. To insert content to this page, open the index.dwt and either unlock the <head> tag or add this content to the template."

How do I unlock it?


Return to posts index
Reply   Like  

Petra NylundRe: Template not updating child pages
by on Oct 5, 2010 at 8:26:32 pm

I think this is a variation too.

http://www.mainosurmas.net/petra/mtbsivusto/

This(above) turns to that(below) when I update my template and upload it to my testing server.

http://www.mainosurmas.net/petra/mtbsivusto2/


A small change (submenu linking to a html page instead of a php-page, because the php didn't work right away in the final server), when I save the template the childpages are also saved, but when I upload the updated files to my server they loose contact with the template (whitch I also uploaded and did not change places).

Earlier I had to do a major correction to my template and then manually via Modify>Apply template... updated all childpages. They lost contact on the server. Then I created new pages from the template and copy-pasted all editable information on each page and got a working site. But there's still things to do and I would like to know what I'm doing wrong - to prevent further frustration...


Return to posts index
Reply   Like  

Petra NylundRe: Template not updating child pages
by on Oct 5, 2010 at 8:35:57 pm

Now I see one big difference between my versions, though I don't know why DW did it...or it could have been me, but how?

<!--[if IE 5]>

This is the ok-page.

And that is the not ok-page - it refers to my harddrive for some reason...

<!--[if IE 5]>

Why oh why...


Return to posts index
Reply   Like  


Ione SmithRe: Template not updating child pages
by on Oct 27, 2010 at 7:31:19 pm

Help!

I have recently been re-building a site, now using Dreamweaver CS4 -- the old site was plain HTML built in Netscape Communicator. All was going well -- UNTIL I moved the entire site from one folder to another. This was the SECOND time I moved the site -- the first move did not cause any problems. But this time, the template and child pages have become unlinked. The child pages no longer update when I update the template. When I choose "modify/template properties" in a child page I get the message "no template properties available", and when I choose "modify/Templates", no template options are active.

How do I reattach the template to the children? I already updated the site as a whole ("manage sites"), which rebuilt the cache -- but that did not help.

The site itself is here: http://www.maransusa.org . You can see which pages have been rebuilt so far, and which have not.


Return to posts index
Reply   Like  

Fernando MolRe: Template not updating child pages
by on Oct 27, 2010 at 8:12:12 pm

Open your child page. Then go to menu:

>Modify >Templates >Apply Template to Page

Then follow the instructions to choose your Template and editable regions.

I hope this helps


Return to posts index
Reply   Like  

Ione SmithRe: Template not updating child pages
by on Oct 27, 2010 at 8:23:06 pm

Hello --

As I indicated in my original post, I was not able to do that because all of the "modify" options were inactive (grayed-out). However, I figured out after posting that those options were inactive because I was in "live" view. Once I left live view, I did exactly what you suggested.

Thanks for your response!


Return to posts index
Reply   Like  


Ione Smithnevermind!
by on Oct 27, 2010 at 7:59:59 pm

Hey guys!

Duhhhh, I figured it out!

It is true that the child pages had become unattached from the template page. However, my main problem was that I had the child pages in "live view" -- and that's why the "modify" options were inactive. As soon as I left live view, I was able to click on "modify/templates/apply template to page", and that solved the problem. :-)


Return to posts index
Reply   Like  

paddy dredieRe: nevermind!
by on Jul 10, 2011 at 7:55:17 pm

Hi

Hopefully someone can help

I am teaching myself dreamweaver cs4 and pretty much stuck at the first hurdle.

I am using a template and if I edit the template it updates my index page for example but the css stuff is lost. By this I mean the header and everything dissapears and I just see basic text on my index page despite still seeing the correct template how I want it to look on the template page.

Any ideas?

Cheers


Return to posts index
Reply   Like  

James PopeRe: Template not updating child pages
by on Aug 19, 2013 at 5:29:40 pm

I am having a similar issue. I am now responsible for updating our company's web page and I have been mildly successful using CS4, but I have run into some hurdles.

I cannot get my child pages to update with the changes I have made to the template. The only success I have had, was updating each child page page individually, which obviously takes forever. How am I supposed to make them all update?

I have no idea what to do. I tried recreating the site cache like you mentioned, but no change.


Return to posts index
Reply   Like  


Mike KennedyRe: Template not updating child pages
by on Nov 26, 2013 at 6:39:00 pm

I was having the same problem and I really appreciated the way you explained to leave NO regions uneditable. (except the ones that will change). I was confused by that same concept and get it now. But anyway, I was wondering if I could just start over. I only have four small pages so far that I created from a basic free template. It would be good practice also. But my site is live and I'm a little unsure of how to proceed.

Obviously I'm sort of a novice also. Thanks


Return to posts index
Reply   Like  

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Share on Facebook


FORUMSTUTORIALSFEATURESVIDEOSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

Creative COW LinkedIn Group Creative COW Facebook Page Creative COW on Twitter
© 2014 CreativeCOW.net All rights are reserved. - Privacy Policy

[Top]