<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>dwcourse.com &#187; templates</title>
	<atom:link href="http://www.dwcourse.com/dreamweaver/tag/templates/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dwcourse.com</link>
	<description>Adobe Dreamweaver Tips, Tricks and Tutorials</description>
	<lastBuildDate>Fri, 23 Jul 2010 09:26:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Recovering a Dreamweaver Template</title>
		<link>http://www.dwcourse.com/dreamweaver/recovering-template.php</link>
		<comments>http://www.dwcourse.com/dreamweaver/recovering-template.php#comments</comments>
		<pubDate>Thu, 14 May 2009 02:40:44 +0000</pubDate>
		<dc:creator>jcook</dc:creator>
				<category><![CDATA[Tip of the Day]]></category>
		<category><![CDATA[CS4]]></category>
		<category><![CDATA[templates]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://dwcourse.com/?p=277</guid>
		<description><![CDATA[Now that I&#8217;ve gotten Let&#8217;s Get Started with Dreamweaver out the door, I thought it would be a good time to catch up on a few Tips of the Day (which you may have noticed haven&#8217;t been happening lately). I have still been answering questions on Twitter as DWcourse so I&#8217;ll get back in the [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Now that I&#8217;ve gotten <a href="http://dwcourse.com/dreamweaver-mini-course"><em>Let&#8217;s Get Started with Dreamweaver</em></a> out the door, I thought it would be a good time to catch up on a few Tips of the Day (which you may have noticed haven&#8217;t been happening lately). I have still been answering questions on Twitter as <a href="http://twitter.com/DWcourse">DWcourse</a> so I&#8217;ll get back in the groove by covering some topics I&#8217;ve addressed there recently.</p>
<p>@<a href="http://twitter.com/michaellunsford">michaellunsford</a> asked if there was a way to reconstruct a lost Dreamweaver template from a page created with the template. The answer is yes but it&#8217;s a bit of work.</p>
<p>BTW, the steps here are based upon a <a href="http://www.ucl.ac.uk/is/training/resources/dw-template/">Dreamweaver template recovery article</a> from the University College London Website. I&#8217;ve tested my revised instructions in Mac Dreamweaver CS4 but they should work for earlier versions as well.</p>
<ol>
<li>Open an &#8220;orphan&#8221; page created from the missing template.</li>
<li>Select menu <strong>File&gt;Save as Template…</strong> <em>If you get a warning dialog that the original template can&#8217;t be found, click OK to dismiss it.</em></li>
<li>
<div id="attachment_284" class="wp-caption alignright" style="width: 168px">
	<img class="size-full wp-image-284" title="Template Name" src="http://dwcourse.com/wp-content/uploads/2009/05/picture-6.png" alt="The name of the template used to create a page is displayed in the upper right corner of thedesign View." width="168" height="52" />
	<p class="wp-caption-text">The name of the template used to create a page is displayed in the upper right corner of thedesign View.</p>
</div>
<p>Give the file the same name as the original template (you can find the original template name in a yellow rectangle in the upper right corner of Dreamweaver&#8217;s Design View).</li>
<li>Click Save and, when prompted, allow Dreamweaver to update links in the file. <em>The file will be saved in the a new or existing Templates folder in the root of your site.</em></li>
<li>Close the file in Dreamweaver.</li>
<li>Open the file in a text editor such as BBedit, TextEdit or NotePad.</li>
<li>Near the beginning of your file, delete the entire comment:
<pre>&lt;!-- InstanceBegin template="/Templates/yourtemplate.dwt" codeOutsideHTMLIsLocked="false" --&gt;.</pre>
</li>
<li>Immediately before the closing html tag &lt;/html&gt; at the end of your document delete the entire comment:
<pre>&lt;!-- InstanceEnd --&gt;.</pre>
</li>
<li>Dreamweaver (at least in CS4) inserts a <em>TemplateBeginEditable name=&#8221;head&#8221;</em> area when saving a page as a template. You&#8217;ll need to delete that. So look for code it the head of the document that looks like this:
<pre>&lt;!-- InstanceBeginEditable name="head" --&gt;&lt;meta name="keywords" content="test" /&gt;
&lt;!-- TemplateBeginEditable name="head" --&gt;
&lt;!-- TemplateEndEditable --&gt;
&lt;!-- InstanceEndEditable --&gt;</pre>
<p>Delete the extra code:</p>
<pre>&lt;!-- TemplateBeginEditable name="head" --&gt;
&lt;!-- TemplateEndEditable --&gt;</pre>
</li>
<li>Now you need to convert all of the InstanceBeginEditable comments into TemplateBeginEditable comments. So search and replace all instances of the following <em>being very careful to match the case of the words exactly</em>:<br />
<blockquote><p>Search for: InstanceBegin<br />
Replace with: TemplateBegin</p></blockquote>
</li>
<li>Now convert the closing comments as well.<br />
<blockquote><p>Search for: InstanceEnd<br />
Replace with: TemplateEnd</p></blockquote>
</li>
<li>Save and close the file.</li>
</ol>
<p>You should now be able to open and edit the file in Dreamweaver. When you save the file, all your changes should be applied to any document that used the original template.</p>
<p><em>As always, if you have questions feel free to comment here or tweet me at <a href="http://twitter.com/DWcourse">DWcourse</a>.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dwcourse.com/dreamweaver/recovering-template.php/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
