Do the site, trouble in the update, especially large-scale updates, the workload is very large. I do not know those creative constantly and diligent "webmaster", regularly will be the site to a "big blood transfusion", is how busy come.
Do the site, trouble in the update, especially large-scale updates, the workload is very large. I do not know those creative constantly and diligent "webmaster", regularly will be the site to a "big blood transfusion", is how busy come.
Tell you the secret, they are very much in the "wholesale" Web page, and your machine also has such a "wholesale station" it! This is the good stuff. Template. Common Web page making tools: FrontPage, Dreamweaver in this feature. If you use Dreamweaver 3.0 to make a website, using a template can reduce a lot of repetitive work.
first, the establishment of templates
1. Create Template page
The easiest way to do this is to save a Web page as a template file by executing the command: File→save as Template,dreamweaver creates a template directory in the site root directory?? Templates to save the template.
Of course, can also create a new template: Window→templates, will appear in the Templates panel, click on the lower right corner of the new Template button, enter the filename, you set up an empty template, and then click the Open Template button to open the template, stored automatically in the site template directory templates.
A new, open template page is no different from a normal Web page, and can also be added to tables, layers, pictures, animations, scripts, page properties, and so on.
For example: here to make a template as an example to illustrate. On this page, we want the site identification and bottom navigation maps on the left to present each page. The logo map is superimposed by two pictures, the text on the navigation map "recent update", "read online", "package download" and so on are divided into several hot areas, respectively, linked to different files, they are unchanged in each page. The page descriptions in the upper-right and bottom-left pop-up menu buttons are different. To keep the pages neat, we use tables to lay out these elements.
Technically, he's just a "quasi-template" with no editable regions, and the editable regions are 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. You can change the area to an editable region by clicking it in a blank area and then executing the command.
Mark an area as an editable region: Select 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 Status: Select command: Modify→template→unmark Editable Region. When you execute the command, a dialog box pops up with a list of editable regions that are currently available, and select the area you want to cancel.Domain nameSay, confirm can.
For example: In a large blank area, random click, execute modify→template→new Editable region command, in the pop-up dialog box, enter the name: Main; Select the bottom left corner of this page to explain the following text, the implementation of Modify→template→mark Selectin as Editable region command, enter name: Exp. Can see the editable area is shown as light blue, save that completes the template production.
second, the use of templates
1, according to the template to create a new page
Command: File→new from Template. Pop-up dialog box, select the template from the list of templates, the new page appears in addition to the editable region has a light yellow background, is not able to modify the part. The blank main edit area can be inserted directly into the table, text, pictures and other operations, the EXP edit area retains the original text, modify or edit all can.
2, to an existing content of the page application template
Command: Modify→template→apply Template to Page. Selecting a template also pops up a dialog box that lets you select which editable region the existing orphaned content is saved to (Choose Editable Region for orphaned content). If you don't want to keep it, you can choose "(none)".
For example: We first create a new normal page, enter: "CIW computer Studio", execute modify→template→apply Template to page command, select Template test, existing content save area Select Main, After confirmation, you can see that the page automatically becomes the form of the template page, and the "CIW computer Studio" line is in the main editing window.
3, update the template to update the site in all aspects
After you have created some pages based on a template, after you have modified the template to save it, a dialog box pops up, listing all pages that use the template, and asking if you want to update it.
Another approach is to execute the modify→template→update pages command. 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!
Example: Test template on the left of the image of the "reading of the Million station" picture is stacked with a layer on top of another picture, do not want him now, but also want to remove all the pages of the picture. You can open the template test.dwt, delete the layer, save the template, and click the "Update" button on the right.
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. The template uses a relative path, and if the site is not specified locally, the software cannot locate and save the template file accurately, and when the template is created and updated, hyperlinks in the page cannot be changed in the same location as the page file. --> -->