This is basic way of create a template in Dream weaver
- Open the document you want to save as a template.
- Open the document that already exist, select File > Open and then select the document.
- To open a new blank document, select File > New. In the dialog box that appears, select basic page or dynamic Page, select the type of page you want to work with, press Create.
When you see the document opens, do one of the following in these steps:
- Select File > Save as Template.
- In the common category of the Insert bar, press the arrow on the Templates button, then select make template.

- Select a site to save the template in from the Site pop-up menu then enter a unique name for the template in the Save As text box.
- At final step press the Save button.
This is another way of creating a template in Dream Weaver
To create a template in Dream weaver, you following these steps:
File > New...
File >Save as Template...
You have to be done with the template file that you have created.
- You give the template a title or a site name.
- Then add your non-editable content.
- Add your template region(s) here.
- Save the template using CTRL+S the toolbar save icon.
- Now close the template using CTRL+W.
Start editing the content in the template
- First step is you open the existing template from your site panel.
- Make changes to areas that are not editable regions.
- Save the template using CTRL+S.
- Update associated pages - this pops up a dialog that you have to agree to or decline on agreeing,
- Then close the template using CTRL+W.
To make new pages based on the created template:
- File > New... [Templates tab] to create a "New from template" file using the newly created template.
- Select your site in the templates for: column.
- Select your template from the Site "{sitename}": column.
- Make sure the Update pages when template changes are checked.
- Press the create button.
- Save the page in your site using CTRL+S.
Now editing the editable region content in the template instance (child)
- Open the htm/html file you just saved.
- You must change the page title from: {sitename} Template to something appropriate.
- Edit where able (editable regions).
- Save the page using CTRL+S, the menu bar icon,
- Close the template instance (child) using CTRL+W.
- Repeat for each page requiring modification.
- Upload the modified file(s) to the server.
This is very first step to define a website. In Dream weaver. Select Site > New Site. from the main window; assign a site name and define the local root folder, which can be a local or network disk.
.
Creating a template and adding editable areas in template
- Select File > new window, then HTML Template from the basic page category.
- A blank template page window appears.
- Dream weaver will save the template in a folder called "Templates" in the site's root directory with a ".dwt" extension.
- To add an "Editable Region" to a template, select Insert > Template Objects > Editable Region. "Editable Regions" are readily identifiable in wysiwyg view with a tag and outline, and are identifiable in code view with "BeginEditable" and "EndEditable" tags.
Now you can connected the pages to a template that you already made
To create pages from templates. One way is to select File > New Window,
- Pres the Templates tab navigate to the desired template and click Create.
- A new window will appear containing a page connected to the template.
- Now you're ready to insert content into the "Editable Regions."
A template is a common structure of a web site that most of your web pages use. In this article we discussed the different ways to create a template in Dream Weaver that are mostly used to develop websites now days.
|
|