Skip to main content
MindTouch Success Center

3.4 - Conditional Content

Applies to:
MindTouch (current)
Role required:
Draft Contributor

► Video: Conditional Content

Use conditional content to restrict content to only certain users.

By default, MindTouch has four Conditional Text types accessible via the editor: Pro Member, Community Member, Anonymous user, and Group. These conditional content types only display text to users that belong to the specified subset of users. Conditional content types do not apply when editing the page. You can also create custom conditional text blocks for specific groups.

Pro Member Conditional Text cannot display in Contextual Help windows, however Conditional Text by Group can display in Contextual Help windows.

Add Conditional Content to a Page

  1. Open a page in Edit mode and place the courser where you want conditional content or highlight content that you want to be conditional.
  2. From the Editor toolbar, select Style and choose one of the conditional text options:
    • Conditional text (anonymous only)
    • Conditional text (community member only)
    • Conditional text (pro member only) 
    • Conditional text (group only) 
  3. The conditional content container appears and is an editable field.Screenshot of the conditional text box for pro members
  4. If you select Conditional Text (group only), click None in the conditional block header to trigger the drop-down menu for Select a group, and select your desired group name. To change the target group, click the group name in the conditional block header to trigger the drop-down menu, and change the selection.
  5. Click Save.

Change or Remove Conditional Content

Conditional content containers function as a toggle. To change the target subset of users, highlight the text, and select a different conditional content type from the Style menu. To remove conditional content, highlight the text, and re-select the active conditional content type.

You can also use shift + enter to create a new line below the conditional content block.

How Search Engines Handle Conditional Content

Public Search (Google, Bing)

Public search engines such as Google and Bing can only find content that is publicly available. Content that you include as conditional for Community Members, Pro Members, or Group membership-specific users, will not be available to these search engines.

MindTouch Search

All results that are provided by the MindTouch search algorithm include conditional content when viewed by an authenticated user. Compatible search interfaces include, but are not limited to:


Not all conditional content is compatible with the MindTouch search algorithm. Conditional content that is applied using the editor toolbar is always compatible, however, conditional content applied by custom DekiScript must adhere to the following rules:

  • DekiScript can only make one type of match, either group(s) or user type
    • Example group(s) match: user.groups['support']
    • Example user type match: user.seated
  • DekiScript can not use AND or NOT operators (only OR is allowed)
    • ✔️ user.groups['support'] || user.groups['marketing']
    • user.groups['support'] && user.groups['marketing']
    • !user.groups['engineering']
  • DekiScript blocks can not be nested (conditional content inside conditional content)

Examples of Conditional Content

Use conditional content whenever you need to control who sees what information on a page: 

  • Internal users need access to proprietary information on a page. 
  • Technical notes should only be seen by your support team.
  • Editors need to "hide" information until it is vetted. 

When using Section Editing for a heading placed within a Conditional Content block,  you must ensure that the Conditional Content block is not a direct child of a parent HTML element. Otherwise, the section will not have the option to Edit.

Video: Conditional Content  

Custom Conditional Content for Groups

As a reminder, beyond the options of anonymous, community, and pro member conditional content containers, you have the option to create custom conditional containers for groups. Click here to learn more.


Now that you have completed Part 3.4 - Conditional Content, jump to:

  • Was this article helpful?