Advanced text fragments
Text fragments have several more options. In this article we explain the most used ones and give short examples.
Deleting with <delete paragraph> and <deleterow>
Sometimes you need to remove a text fragment after it is made. In that case, you can create the text fragment again, and select the ‘delete paragraph’ check box. This will remove the text fragment and the paragraph in your template it is in. Because it also removes the paragraph, you can also use this to remove small sections - for example unwanted titles. The other option, <deleterow> can be used in tables. It will then remove a single row of the table.
Text styles in text fragments
We highly recommend doing all you layout in Word. However, sometimes you need a (small) part of your text styled, for example in bold or italics. You can use the following codes to style your texts:
<b>...</b>: creates bold text.
<i>...</i>: creates cursive text.
<u>...</u>: creates underlined text.
<s>...</s>: creates strikethrough text.
<+>...</+>: creates superscript text.
Editing variable formatting within a text fragment
If you need to edit a variable before you put it in a text fragment (for example, changing a number’s formatting) you can do so with a formula. However, you can also double click the first word of your variable - the one with an underlined first letter. This will open up the following screen with options:
Links in text fragments
In order to include an (internet) link to a text fragment, use the simple form of the MarkDown link syntax:
For example, to link the text ‘the news’ to the BBC website, you can use:
Exporting your text fragments
In the menu
RESOURCES there is the button Export text. If you click this button, the studio will ask you where to save the file textfragments.csv.
You can change the filename.
The resulting file can be opened in Excel. There you will find all the textfragments, their content and the optional condition.
This file can be communicated with people who are not skilled in the publisher, but need to see all the possible outcomes of the textfragments to check.