Inserting an optional region

Inserting an optional region

Use an optional region to control content which may or may not be shown in a template-based document. There are two optional region objects:

  • An optional region enables template users to show and hide specially marked regions without enabling them to edit the content.

    The template tab of an optional region is preceded by the word if. Based on the condition set in the template, a template user can define whether the region is viewable in pages they create.

  • An editable optional region enables template users to set whether the region shows or hides and enables them to edit content in the region.

    For example, if the optional region includes an image or text, the template user can set whether the content is displayed, as well as make edits to the content if desired. An editable region is controlled by a conditional statement.

To insert an optional region:

  1. In the Document window, select the element you want to set as an optional region.
  2. Do one of the following:
    • Select Insert > Template Objects > Optional Region.
    • Right-click (Windows) or Control-click (Macintosh) the selected content, then select Templates > New Optional Region.
    • In the Common category of the Insert bar, click the arrow on the Templates button, then select Optional Region.

      This is a picture of the feature being described.

    The Optional Region dialog box appears.

  3. Specify options for the optional region.

    For information about defining the optional region, see Setting the Optional Region dialog box options.

  4. Click OK.

To insert an editable optional region:

  1. In the Document window, place the insertion point where you want to insert the optional region.
  2. Do one of the following to open the Optional Region dialog box:
    • Select Insert > Template Objects > Editable Optional Region.
    • In the Common category of the Insert bar, click the arrow on the Templates button, then select Editable Optional Region.

      This is a picture of the feature being described.

    The Optional Region dialog box appears.

  3. Enter a name for the optional region, and then click the Advanced tab if you want to set other options.

    For information about defining the optional region, see Setting the Optional Region dialog box options.

  4. Click OK.

Related topics

  • Modifying an optional region


Getting Started with Dreamweaver
Dreamweaver Basics
Working with Dreamweaver Sites
Laying Out Pages
Laying Out Pages with CSS
Managing Templates
Adding Content to Pages
Working with Page Code
Preparing to Build Dynamic Sites
Making Pages Dynamic
Developing Applications Rapidly
 
ASPTreeView.com
 
Evaluation has ЅЛµexpired.
Info...