Excerpt variables are placeholder values that can be modified with user-defined values per MultiExcerpt Include.
Create variables in MultiExcerpt, use the content using the MultiExcerpt Include macro, and change the placeholder values as required.
This article provides you with the following information:
Creating MultiExcerpt Variables
To add variables, perform the following:
Creating a Variable
To create a variable, perform the following
Use any of the following macros to create a variable:
Multiexcerpt
Multiexcerpt Fast Excerpt (Block)
Multiexcerpt Fast Excerpt (Inline)
Create variables as per the following template:
{{text}}
For more information on how to use the macros, click /wiki/spaces/SUP/pages/147360348.
EXAMPLE
The following is the content created as variables using Multiexcerpt macro:
In the above example, ‘Country’, ‘Rank’, and ‘Currency’ are the placeholders for variables.
Creating the Content Using MultiExcerpt Variables
To create content using variables perform the following:
Use any of the following macros as per your requirement:
Multiexcerpt Include
Multiexcerpt Fast Include (Block)
Multiexcerpt Fast Include (Inline)
Enter the details in the following tabs and click the Save button:
Macro settings
Parameter | Description |
---|---|
Page | Enter the name of the page where you have created the Multiexcerpt variable. |
Name | Enter the name of the Multiexcerpt variable. |
Add surrounding panel | Check this box to add a surrounding panel to your content. |
For more information on macros settings, click /wiki/spaces/SUP/pages/147360348.
b. MultiExcerpt Variables
Parameter | Description |
---|---|
Variable | This column is auto-populated with the placeholder names. |
Value | Enter the respective replacement placeholder values. |
EXAMPLE
The following is the content created as a variable using Multiexcerpt macro:
In the above example, ‘Country’, ‘Rank’, and ‘Currency’ are the placeholders (variables) to create the following content:
Replace the Variable with the Values as per requirement.
The following image displays the view of the unpublished draft.
Note
You can add a maximum of ten unique variables per excerpt.
A variable that is too long is invalid. The variable name is limited to 24 characters and the value to 48.
Accepted character values [a-z, A-Z, 0-9, _, -]
Editing MultiExcerpt Variables
To edit the MultiExcerpt Variables, perform the following:
Click the macroblock and select the icon.
Go to the Variables tab and make the necessary modifications.
Click Save. The modifications are updated.