© Copyright Excosoft. Powered by Skribenta CCMS® and Topic Finder CDP®

Find and navigate

Filters


Add/remove/view favorites


Table of contents

File properties

Conditionalizing inline content

Background

The procedure in this topic assumes Skribenta is installed and configured for normal operation, and:

You need to conditionalize inline content, for example content in a title element, to be able to use the same content file for multiple publications.

It is possible to conditionalize inline content in for example a title element using an inline-if phrase element. You can use several inline if phrase elements to conditionalize different parts of the inline content.

By using a variable in the condition, the condition can be evaluated differently depending on the variable value defined in the publication's configuration file. You can then use the same content file in multiple publications, and let the variable value control the published output.

About this task

This instruction tells you how to conditionalize inline content in for example a title element.

This is the file content before conditionalizing inline content in a title element.

This is the file content after conditionalizing inline content in a title element.

In the shown images, the XML tags are visible. To show XML tags, see Turning XML element tags on or off.

Put the caret where you want to create the condition, then click Inline > Phrase > Inline-if on the top toolbar. Type the condition inside the created Inline-if phrase element.

5 minutes

Procedure

In the shown images, the XML tags are visible. To show XML tags, see Turning XML element tags on or off.

1. Make sure that the step(s) in section "Starting point" (see section "Background" above) are performed.

The Phrase list opens.

A phrase element with class inline-if is created.

In this example the condition is a boolean variable.

All content to the right of the inline-if phrase element is now conditionalized, unless a static true condition is inserted somewhere after.

  • Publish the publication

    or

  • Evaluate the condition directly in the content file, see .