Custom Content Dialog

The Custom Content Dialog allows you to create a command that inserts a pre-defined content template into your document (e.g " bold", " graphic", etc). To learn more about Custom Content, see Custom Content Customization. For instructions on how to create Custom Content, see How to Create Custom Content.

Figure 1. Custom Content Dialog



For a new custom content template there are automatically assigned default values that the user may modify when creating a new template:

  1. Name

    Unique identifier for the new custom content template.

  2. Inscription

    Human-readable inscription.

  3. Icon

    Icon for the button which inserts this custom content template.

  4. Hot key

    The hot key associated with this custom content template. To assign the hot key, just put the cursor into this edit box and hit the key combination.

  5. The Content edit box provides the XML content which will be inserted if the result of XSLT match expression in the If matches edit box evaluates to true at the current cursor position. Empty Context always evaluates to true, and the first content with matched context expression is applied.

  6. The Node edit box and Position combo-box define the position where the inserted template should go relatively to the current cursor position. If you want to insert a custom content into the current cursor position, leave the Node edit box empty. Otherwise, the Node edit box must contain an XPath expression which returns a node-set from which the first node will be used to determine the insert position (see also Inserting Custom Content to a Position that is Different from the Current Cursor Position). If the returned node-set is empty, then the insert operation is not performed, and the current content template alternative is considered as not matched even if the If matches match expression evaluates to true.

  7. The Add and Remove buttons allow you to create/delete multiple context-sensitive custom content templates (see also Creating a Context-Sensitive Image Insertion Command).

Important:

By default, every change made to the Serna GUI is not permanent: you should save it before you close the document. If you forgot to save changes, open the document from the recent file list: the GUI with your changes will be restored. For instructions on how to save the GUI view, see How to Save View.