How to edit a site template with DW

Source: Internet
Author: User

Open the BODY.DWT Web site template file in site, you will find that the body.htm page seems to be no different, but in fact, is not the same, in the body.htm can not add editable regions. Editable regions can only be added to the template file. In order to better understand the "editable region", we first use this template to generate an HTM file: Point fileànew from Template, pop-up Select Template window, select the body in the emplates, Then click Select in the upper right corner to generate a new HTM file. We will rename this new page to body2.htm. Now we're going to use DW to open body.htm and body2.htm two files and compare what's different. You will find the word "Template:body" written in the upper-right corner of the body2.htm page. At the same time you will be surprised to find that body2.htm files should not be edited. By the way, this is because the body.dwt template file does not have the result of defining an editable region, so that the resulting page is not editable. So we have to add editable regions to the template file. Here are the steps to add an editable region:

1 Open the BODY.DWT template file, we want the middle form to be edited. But to be in the body.dwt file, not the body.htm, you add an editable region here.

2 Put the mouse cursor into a table, click the right mouse button, select New Editable Region ..., pop-up the new Editable Region window, required to fill in the name of this editable region. We fill in the Region01 and click OK to close this window to finish editing the current editable region tag.

Explains that there is an editable region labeled Region01.

So far we've defined an editable region, and if you have more than one editing area, you can do the same.

Note: through Modifyàtemplatesànew Editable Region ... Site templates can generate new editable regions, and if you want to delete editable regions, you can use Modifyàtemplatesàremove Editable Region ... and then follow the prompts.

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.