2019.2

Table Of Contents
For each type of element, a small selection of attributes is visible on the Attributes pane at the
top right.
In a multilingual template, the proprietary data-translate attribute marks an element for
translation. For more information see "Translating templates" on page907 and "Tagging
elements for translation" on page909.
Changing attributes via script
Many attributes can be changed via the user interface. Another way to change attributes is by
using a script.
Any of the Script Wizards can produce a script that changes an attribute of an HTML element.
Set the Options in the Script Wizard to Attribute, to output the script's results to the value of a
specific attribute. See "Using the Text Script Wizard" on page803.
In code, you can change an element's attribute using the function attr(); see "Writing your own
scripts" on page853 and "Standard Script API" on page1287.
Inserting an element
To insert an element in a section:
1. Navigate to where you want to insert the element, using the arrow keys, the mouse, the
Breadcrumbs (see "Selecting an element" on the facing page) or the Outline pane.
2.
Click the respective toolbar button. Alternatively, click the element on the Insert menu.
3. Add an ID and/or a class. ID's and classes are particularly useful with regard to variable
data (see "Personalizing content" on page786) and styling (see "Styling templates with
CSS files" on page743).
Note
Do not give an element the ID 'pages' or the class name 'dynamic'. These are reserved words.
Using them as an ID or class name leads to undesirable effects.
Page 631