Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use DreamWeaver template tool to make web pages in batches

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains "how to use the DreamWeaver template tool to mass produce web pages", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "how to use the DreamWeaver template tool to mass produce web pages" bar!

First, establish a template

1. Create a template page

The easiest way is to save a web page as a template file and save the template by executing the command: File → Save as Template,DreamWeaver creates a template folder, Templates, in the root of the site. Of course, you can also create a new template: Window → Templates, the Templates panel that will appear, click the New Template button in the lower right corner, enter the file name, and create an empty template; then click the Open Template button to open the template and save it automatically in the website template folder Templates. New and open template pages are no different from ordinary web pages. You can also add tables, layers, pictures, animations, scripts, set page properties, and so on.

Example: here to make a template as an example. On this page, we want the site logo on the left and the navigation at the bottom to appear on each page. The logo map is made up of two pictures, and the text "recently updated", "online reading" and "packaged download" on the navigation map are divided into several hot spots and linked to different files, which remain the same on each page. The description of the page below the pop-up menu button in the upper right and lower left corner is different. To keep the page clean and tidy, we use tables to arrange these elements.

To be exact, it is just a "quasi-template" with no editable region, so let's set the editable region.

2. Set the editable area

There are generally two ways to set the editable region of the template.

Create a new editable region: select the command: Modify → Template → New Editable Region. Click in an empty area and execute the command to make the area editable.

Mark a region as editable: select command: Modify → Template → Mark Selectin as Editable Region. If an area already has some text and you want to retain part of its contents in a new hypertext file, select the area and then execute the tag command.

Cancel editable status: select the command: Modify → Template → Unmark Editable Region. After executing the command, a dialog box pops up with a list of existing editable regions. Select the name of the region you want to cancel and confirm it.

For example: click casually in a large blank area, execute the Modify → Template → New Editable Region command, enter the name in the pop-up dialog box: Main; select the following text in the lower left corner of this page description, execute the Modify → Template → Mark Selectin as Editable Region command, enter the name: exp. You can see that the editable area is displayed in light blue, and the template production is completed by saving.

Second, use templates to make web pages in batches

1. Create a new page based on the template

Command: File → New From Template. Pop-up dialog box, select a template from the list of templates, the new page appears with a yellowish background except for the editable area, which cannot be modified. Blank Main editing area can directly insert tables, text, pictures and other operations, Exp editing area to retain the original text, modify or re-edit.

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

Command: Modify → Template → Apply Template to Page. After selecting the template, a dialog box pops up that allows you to choose the editable region (Choose Editable Region for Orphaned Content) to which the existing orphaned content is saved. You can choose "(none)" if you don't want to keep it.

For example: we first create a new ordinary page, enter: "CIW computer Studio", execute the Modify → Template → Apply Template to Page command, select template test, select Main for the existing content saving area, and after confirmation, you can see that the page automatically becomes the form of a template page, and the word "CIW computer Studio" appears in the main editing window.

3. Update the template to fully update the site

After some pages are created based on a template, when you modify the template and save it, a dialog box automatically pops up listing all the pages that use the template and asking if you want to update it.

Another way is to execute the Modify → Template → Update Pages command. Select a site or a template for a 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 will automatically search and update the web page associated with the template. It's very convenient!

For example: the "reading ten thousand station" picture in the drawing on the left side of the Test template is superimposed on another picture with one layer. I don't want it now, and I also want to delete the picture from all pages. 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 creating and using templates. By executing the command: Site → Define Sites; specifies the site name and the local root directory (Local Root). The template uses a relative path, and if you do not specify the local location of the website, the software cannot accurately find and save the template file; and when you apply the template to create and update the page, the hyperlinks in the page cannot change according to the location of the page file.

Thank you for your reading, the above is the content of "how to use DreamWeaver template tools to mass produce web pages". After the study of this article, I believe you have a deeper understanding of how to use DreamWeaver template tools to mass produce web pages, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report