macro
The macro
element can be used to provide a means of
inserting custom HTML code into the content of a rich text field. If a
rich text field definition in the content-type
resource contains one or more ui:macro
elements, then
a macro button is added to the rich text toolbar in CUE. Clicking this
macro button displays a drop-down menu containing one menu item for each
ui:macro
element. The following macro definition, for
example, inserts a placeholder for a fact box (to be replaced by the
presentation layer during page rendering):
<ui:macro name="insert-factbox"> <ui:step action="insert" text="Fact box" wrap-element="eceplaceholder" class="factbox"/> <ui:keystroke>alt F</ui:keystroke> <ui:description>Insert fact box</ui:description> </ui:macro>