As you have seen thus far, editable regions provide some level of flexibility in terms of allowing users working with template-derived pages to add and modify content in areas on the page that you, as the template designer, specify as editable. In our example, we made the assumption that various departments in our organization would need to create an instance of the template and customize certain areas (editable regions) to suit their needs. Up to this point, we've discussed allowing the users to customize the small subheading images by allowing them to replace image placeholders with their own department-specific images. We also added a third editable region that allowed the user to add text for the main content of the template-derived page. What we haven't done yet is set aside the Events table as editable. The challenge with making the Events table editable is that we need to be careful not to make the entire table editable. Technically, we could create one big editable region and then place the Events table in that editable region. The problem with this approach is that the user would be able to change the heading that appears in the table as well as the small calendar icon that appears just to the left of each row. Because we want to keep a level of consistency across departments, allowing the department users to do this wouldn't be the best idea. Instead, we can keep the locked design of the table but set aside a row in the table as a repeating region. This would allow the user to continuously add rows to the table, while at the same time preserving the overall look and feel of the table. To enable a repeating region for the Events table, follow these steps:
Alternatively, you can create a table with repeating rows by choosing Insert, Template Objects, Repeating Table. Selecting this option reveals the Insert Repeating Table dialog, similar to Figure 15.14. Figure 15.14. Use the Repeating Table option to quickly create a table that has repeating rows.The Insert Repeating Table dialog allows you to quickly construct a table by customizing Rows, Columns, Width, Border, Cell Padding, and Cell Spacing values. The second half of the dialog allows you to set the starting and ending rows for the repeating row as well and the name to be associated with the repeating region. Personally, I prefer to construct the table on my own and then designate the repeating and editable regions because this method is much more flexible for creating column headers and graphics that I want to appear next to each row. The method you decide to use is entirely up to you. Adding Content to Repeating RegionsAs we did with the editable regions example, let's switch roles for this section and play the role of a department web developer. Assume that we need to add some department events to our new template-derived page. To do this, follow these steps:
Of course, we can also remove and reorder items in the table by clicking other options in the button menu as well. The downside to using this menu however, is that it appears only when invisible elements are turned on. If you're like me and prefer not to have invisible elements turned on, adding new rows to the repeating table could pose a challenge. To demonstrate this, turn invisible elements off by disabling the Invisible Elements option located in the Visual Aids menu in the Document bar similar to Figure 15.17. Notice that the small button menu for adding, removing, and reordering rows in the Events table no longer exists. Figure 15.17. Uncheck the Invisible Elements option.To continue to add and reorder rows within the repeating table when invisible elements are turned off, we must turn to the options available from the Modify, Templates submenu:
To cut, copy, or delete rows within a repeating table, choose one of the options available from the Edit, Repeating Entries submenu:
|