Removing Editable Regions


Removing Editable Regions

If you make a region editable and later decide you want to lock it instead, it's easy to remove the editable region.

To remove an editable region:

1.
Click the tab in the upper left of the region to select the region.

2.
Choose Modify > Templates > Remove Template Markup ( Figure 13.6 ).

Figure 13.6. To remove an editable region from a template, choose Remove Template Markup.


3.
The region is locked.

Other Kinds of Template Regions

Dreamweaver can create more complex editable areas in addition to the basic editable region. These kinds of editable regions are used less frequently, but they're still useful when you need them. You probably noticed the options in the Templates pop-up menu in the Common category of the Insert Bar (Figures 13.1 and 13.3). They are:

  • Repeating Region: Repeating regions can be duplicated by the user as often as needed. They're useful for things that vary from page to page, for example a chart of product colors or sizes, or a list of recipe ingredients . Repeating regions aren't editable until you define the editable areas of the region.

  • Optional Region: You set conditions for optional regions, indicated by the word if in the tab showing the region name . Optional content can be either hidden or displayed, depending on whether the conditions are met. For example, let's say that you have a page of upcoming events. You have an image that says, "Coming Soon!" that you want to appear next to events that will occur in the next month. You can write code that checks the date, then displays the "Coming Soon!" image in an optional region when the code expression is true.

  • Editable Optional Region: As with optional regions, you can decide whether or not to display content in these regions. Editable Optional Regions are, well, editable.

  • Repeating Table: Repeating tables are actually repeating regions, but they automatically include table tags, so you can easily use them for tabular data.





Macromedia Dreamweaver 8 for Windows & Macintosh Visual QuickStart Guide
Macromedia Dreamweaver 8 for Windows & Macintosh
ISBN: 0321350278
EAN: 2147483647
Year: 2005
Pages: 239

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net