|
Text items are small indivisible blocks of formatted text. They are indivisible in the sense that only a whole text item is reusable, not a part of the text item. You can use a text item in pages, documents, and content items. A text item can consist of multiple pieces of text and fields, each of which can have a condition and a presentation style.
Select the language in which you want to add or edit text.
Type or paste your text in the text field.
Within text items, you can refer to information from your domain model. You can do this by inserting fields in your text. A field can contain an expression or a reference to an attribute. On generating your document, these fields are substituted by their actual (display)values.
Insert a new field:
Create an expression using the expression editor.
Transforming existing text to a field:
Right click the field.
A comment at the start of a field will be used as a preview. For example, the expression |
You can add a condition to a part of your text, in order to display or hide this part under certain conditions.
Always consider reusability of your text item when you decide to add a condition to your text item. An alternative is to divide your text over multiple (inline) text items as separate nodes with its own precondition in a content item. |
To add a condition to a text item:
Select the text to which you want to apply the condition.
Select the add condition button that appears near the selected text.
Enter your condition in the expression editor that appears.
As a result, the conditional text is highlighted.
Right click the highlighted conditional text.
Right click the highlighted conditional text.
You can add a presentation style to a piece of text to change its appearance.
Select the text to which you want to apply the presentation style.
Select the add presentation style button that appears near the selected text.
Select the presentation style from the list
As a result, the text is underlined.
Editing and removing a presentation style is done in a similar way as conditions.