Wrox Programmer Forums
|
BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4
This is the forum to discuss the Wrox book Beginning Dreamweaver MX by Charles E. Brown, Imar Spaanjaars, Todd Marks; ISBN: 9780764544040
Please indicate which version of the book you are using when posting questions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 24th, 2006, 01:13 AM
Authorized User
 
Join Date: Jan 2006
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default Template updates

Ok man I struggled with this. It has been my impression for quite some time that when you make a change to a template file that the entire template was applied to all existing pages. This doesnt seem to be the case. Either its a bug or is working the way it is supposed to work I am not exacly sure. When I for example edit out a <script> </script> element off the main template, dreamweaver shows it updating pages that were based off this template. However after checking my files in my case I had to detach then reapply the template to the page to see the change. I have created other templates and have overwritten the existing template using the same name, i ddon't know if this may have caused problems as well. Imar i'm sure your reading this as it seems you are the only one that responds to my posts and I now see the importance of Includes. Thanks again for that. L8r

 
Old February 24th, 2006, 01:17 AM
Authorized User
 
Join Date: Jan 2006
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default

forgot to ask in last post. Is there a way to see what template a page is based upon within dreamweaver?

 
Old February 24th, 2006, 01:21 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Normally, all pages based on the template should be updated.

However, depending on the version of Dreamweaver you're using, your results may vary. Numerous problems have been reported while working with Dreamweaver templates, so you're definitely not alone...

Wise use of ASP includes can minimize this problem....

When you validate your pages after you updated a template, make sure you check the right files. DW updates the local versions, not the remote ones automatically.

And yes, that's easy to see: at the top of a child page you see an HTML comment pointing to the template used.

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old February 24th, 2006, 03:01 PM
Authorized User
 
Join Date: Jan 2006
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey Imar, I originaly had a <script> </script> section that I included in a template. I deleted this section out and verified it is no longer in the template file. Then I checked my child pages and noticed this <script></script> section was re-populated. I manualy deleted this section off the child page and when I reapply the template to the page this <script></script> section gets added back in. I have reverified it is not part of the main template file. Is this something that you have ever seen happen? Thanks

 
Old February 24th, 2006, 03:16 PM
Authorized User
 
Join Date: Jan 2006
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The other weird thing is now my existing pages off this template repeat as in below my footer another header appears with another full page layout and also repeats itself again so if you were to look at the page it would actually be 3 of the same pages stacked on top of one another. Finaly, If i create a brand new page and apply the same template I get the results I desire.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Parameter Updates HelmutArnold Reporting Services 3 October 23rd, 2006 09:06 AM
session updates too slow pettrer ASP.NET 2.0 Basics 1 June 5th, 2006 12:12 PM
Updates? GeekyMonkey BOOK: Professional Web Parts and Custom Controls ASP.NET ISBN: 0-7645-7860-X 12 May 24th, 2006 12:11 PM
What happens if someone else updates the data jaideepc ADO.NET 2 August 11th, 2004 12:02 PM
Transactional UPDATEs djm2cmu BOOK: ASP.NET Website Programming Problem-Design-Solution 0 January 20th, 2004 11:42 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.