Skip to main content

Conditionalize sections of an article

This page applies to:MindTouch Responsive

This article addresses how to restrict content to only certain users of your site. Using conditional content on a page is not only a great way to personalize the experience for your users, but—and more importantly—it provides a mechanism for you to keep your proprietary information proprietary.  In MindTouch, any content can be viewed on a need-to-know basis.

When to use conditional content

Use conditional content whenever you need to control who sees what information on page, as in the following examples: 

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


How search engines deal with conditional content

Search engines (including the MindTouch search engine) can only find content you make publicly available, i.e. content you make available to anonymous users. Even if your site is public (which we recommend so your site can get indexed and ranked by web search engines), with conditional content, you control which content search engines are allowed to index and to display on their search engine results pages (SERPs). Search engines cannot see any content you conditionalized for community members (they have to be logged in to see information) or pro members (they too have to be logged in but also have various degrees of contribution privileges). In short, search engines can only see public content or content that is conditionalized for anonymous users.


Conditionalize content

  1. Open the Styles menu.​


  1. Select one of the following options from the Styles drop-down menu, depending on who should see the conditionalized content:
  • Conditional text (anonymous only)
  • Conditional text (community member only)
  • Conditional text (pro member only)    

Image  of conditional text options in the styles menu

  1. Add your text to the conditional text box.

Image of a conditional text box on a page

  1. Click Save.


Remove conditional content

  1. Highlight the conditional content.
  2. Open the Styles menu.
  3. Click the highlighted conditional content style.

Conditional content is toggled similar to formats like bold and italic. Applying the style twice restores the content to its original state.

What's next

Learn how to create custom conditional text blocks for specific groups.