You can allow a template user to modify specified tag attributes in a document created from a template.
For example, you can set a background color in the template document, yet enable template users to set a different background color for pages they create. Users can update only the attributes you specify as editable.
You can also set multiple editable attributes in a page so that template users can modify the attributes in template-based documents. The following data types are supported: text, Boolean (true/false), color, and URL.
Creating an editable tag attribute inserts a template parameter in the code. An initial value for the attribute is set in the template document; when a template-based document is created, it inherits the parameter. A template user can then edit the parameter in the template-based document.
If you make the link to a style sheet an editable attribute, then the attributes of the style sheet are no longer available for either viewing or editing in the template file.
- In the Attribute box, enter a name or select an attribute in the Editable Tag Attributes dialog box by doing one of the following:
To make it easier to identify a specific editable tag attribute later, use a label that identifies the element and the attribute. For example, you might label an image whose source is editable logoSrc or label the editable background color of a body tag bodyBgcolor.
In the Type menu, select the type of value allowed for this attribute by choosing one of the following options:
Text: Select this option to enable a user to enter a text value for the attribute. For example, you can use text with the align attribute; the user can then set the attribute’s value to left, right, or center.
URL: Select this option to insert a link to an element, such as the file path to an image. Using this option automatically updates the path used in a link. If the user moves the image to a new folder, the Update Links dialog box appears.
Color: Select this option to make the color picker available for selecting a value.
True/False: Select this option to enable a user to select a true or false value on the page.
Number: Select this option to enable a template user to type a numerical value to update an attribute (for example, to change the height or width values of an image).