Dreamweaver Batch production Web page

Source: Internet
Author: User
Tags modify dreamweaver root directory
dreamweaver| Web site, the trouble is to update, especially large-scale updates, the workload is very large. I do not know those creative constantly and diligent "webmaster" regularly will site to a "big blood transfusion" is how busy come? To tell you, most of them are in the "wholesale" page, and your machine also has such a "wholesale station" it! Don't be surprised, this good thing is--template. Common Web page making tools: FrontPage, Dreamweaver in this feature. Using a template, for example, when making a Web page with Dreamweaver, can reduce the amount of repetitive work.

Create a template

1. Create Template page

The easiest way is to save a Web page as a template file by executing the command: "File/save as Template", Dreamweaver creates a template folder--templates in the site root directory to hold the template.

Of course, you can create a new template: "Window/templates", will appear in the "Templates" Panel, click the lower right corner of the "New Template" button, enter the filename, you set up an empty template; then click Open Template button to open the template, save it automatically in the Site templates folder "Templates".

Template pages and regular web pages are no different, you can also add tables, layers, pictures, animations, scripts, set page properties, and so on. To be exact, it's just a "quasi-template" with no editable region, and the editable region is set below.

2. Set Editable region

Set the template editable region, generally there are two methods.

New Editable region: Select command "Modify/template/new Editable Region". When clicked in a blank area, select the command in the pop-up menu to change the range to an editable region.

Mark an area as an editable region: Select the command "Modify/template/mark selectin as Editable Region". If a region already has some text, and you want to partially retain its content in later hypertext files, select the area and then execute the tag command.

Cancel editable state: Select command "Modify/template/unmark Editable Region". When you execute the command, a dialog box pops up with a list of existing editable regions, and select the name of the zone you want to cancel, and confirm.

Working with templates

1, according to the template to create a new page

Select the command "File/new from Template". In the pop-up dialog box, select the template in the template list, the new page appears in addition to the editable region has a light yellow background, you can not modify the part. The blank "Main" edit area can directly insert tables, text, pictures and other operations, the "EXP" edit area retains the original text, you can "modify", "edit" and other operations.

2. Apply a template to a page that already has content

Select the command "modify/template/apply Template to Page". When you select Templates, a dialog box pops up, allowing you to select existing orphaned content to be saved to an editable region (Choose Editable Region for orphaned content). If you don't want to keep it, you can choose None.

3, update the template to fully update the site

After you have created some pages with a template, you will automatically pop up a dialog box when you save the template, listing all pages that use the template, asking if you want to update and choosing Yes.

Another approach is to execute the "modify/template/update Pages" command. To select a template for a site or site from the Update Pages dialog box (multiple templates can be used in the same site), click the Start button on the right, and the software automatically searches for and updates the page associated with the template. Very convenient!

Note: You need to define a site before you create and use a template. The method is to execute the command "Site/define Sites", specify the site name and the local root directory (native root). The template uses a relative path, and if the site is not specified locally, the software cannot accurately locate and save the template file, and when the template is created and updated, hyperlinks in the page cannot be changed as the page file is saved.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.