Skip to main content
Participant
December 12, 2016
Question

Templates Help with Dreamweaver CC 2017

  • December 12, 2016
  • 4 replies
  • 1208 views

My discussion with Nancy O'Shea has moved off it's topic- So I am starting a new discussion- I need help with templates. Nancy said: "

You must never save a Template.dwt as an HTML file.  That's not how templates work.

You must create a new child page from the site template. "

So how do you create a new child page from a template? Can I do this from my already created pages Nancy?

Nancy OShea

This topic has been closed for replies.

4 replies

ALsp
Legend
December 12, 2016

Sometimes, a tutorial can help... or at least a visual. The following is from CC 2015. CC 2017 is similar, just uglier :-)

Nancy OShea
Community Expert
Community Expert
December 12, 2016

Assuming you are working in a defined local site folder.

And your Templates folder is at root level.

Go to File > New > Site Template.  See screenshot.

The result is a child page.  Save & name whatever you like.

Add content to editable regions and save again.

Repeat for other site pages.

Nancy

Nancy O'Shea— Product User & Community Expert
Jon Fritz
Community Expert
Community Expert
December 12, 2016

Once you have your .dwt template created, it will be saved to a folder called Templates in your site's root folder.

From there on out, to create pages based on and linked to the template file, you go to...

1. File > New...
2. In the left-most column of the New Document dialogue window, choose the bottom-most option "Site Templates"
3. Click the Defined Site you are working on from the Site column
4. Click the template file in the third column that you want to create a new child page from
5. hit Create

The new page will open with grayed out code for those areas you can't edit (the areas outside your Editable Regions in your .dwt file).

6. You can now add information to the areas you defined as Editable Regions in the .dwt file.
7. When you have the page content set the way you want, choose Save As and give the page a name
8. Save the page to your defined site

From there on out, any changes made to the non editable regions of your .dwt will propagate to any page created using the method above (if you change a menu in the template for instance). DW will update everything locally, but anything that changes will need to be uploaded to your site. The .dwt template file does nothing onlin, it is only used by DW on local files.

Legend
December 12, 2016

jacko34106721 wrote:

So how do you create a new child page from a template? Can I do this from my already created pages Nancy?

File>New>Page from Template>Choose the template that you saved in your site folder. That's it - save the new page as index.html or whatever you want - about_us.html etc, edit it add content, do what you want.