• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL

Lesson 9. Using Templates > Inserting Repeating Regions

Inserting Repeating Regions

A repeating region is an area on the page that needs to be duplicated one or more times. Repeating regions can be particularly useful when you need to have multiple entries, possibly a varying number, placed on pages built from your templates. Repeating regions allow you to have specific control over the appearance of tables with multiple entries. In this exercise, the table listing other lighthouses will use repeating regions.

In profile.dwt, select the two empty rows at the bottom of the table for “Other Lighthouses With 1st Order Fresnel Lenses.”

Outlines appear around the cells to indicate they are selected.

Click the Repeating Region icon on the Templates tab of the Insert bar.

The New Repeating Region dialog box opens.

Name the region otherlights and click OK.

The rows you selected become outlined in a light blue color and a tab at the top of the outline displays the name “otherlights.” The highlight color for repeating regions is the same as the highlight color for optional regions and lighter than the color for editable regions.


When developing your own Web sites, you may want to change the color of the highlighted regions if they don't show up against the colors used in your page. You can do so by choosing Edit > Preferences and select the Highlighting category. Click the Editable Regions color box and select a highlight color, or enter the hexadecimal value directly into the text field. Do the same as needed for the other highlight colors. The editable region color appears in the template itself and in documents based on the template; the locked region color appears only in documents based on the template. The default colors are blue (#66CCCC) for editable regions and pale yellow (#FFFFCC) for locked regions. You can click Show to enable or disable the display of these colors in the Document window. These highlight colors will only show in the document window if the option to view invisible elements is enabled. If invisible elements such as the highlighting on template regions do not appear in the document window, choose View > Visual Aids > Invisible Elements.

Select the first cell in the bottom row, in the same column as the word “Name,” in the empty row that you just made a repeating region. Click the Editable Region icon on the Templates tab of the Insert bar and type name for the region name.


To select the cell easily, place the pointer in the cell and click the last <td> tag on the Tag Selector.

In order to make changes within a repeating region in any subsequent documents that are based on your profile template, the repeating region must contain as many editable regions as necessary.


If a spacer row like the one used in this example is not placed between the top of the repeating region and the editable regions it contains, then it may be difficult to see the outline around this cell that designates it as an editable region. The outline and tab surrounding the top row, which indicate the row is defined as a repeating region, may obscure the outline of the editable region below. The spacer cell, however, will be included as part of each instance of the repeating region in the documents based on the profile template. If it is difficult to see the outline or tab indicating an editable region, you can confirm that the cell you made editable is indeed an editable region by clicking inside the cell and looking at the Tag Selector. The bold <td> tag corresponds to the cell you clicked in. Preceding that <td> tag will be the template markup <mmtemplate:editable>.

Repeat step 4 for the next two cells in the bottom row, naming them location and height. Save the file.

Your document should look like the example shown here.

You can save and close the profile.dwt file.



Not a subscriber?

Start A Free Trial

  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint