Skip to main content
MindTouch Success Center

Display page content only to specific users

This page applies to:MindTouch (current)

This article addresses how to restrict content to only certain users of your site using conditional content. Conditional content is not only a great way to personalize the experience for your users, but—perhaps more importantly—it provides a mechanism for you to control access to your sensitive information. 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 a page, as in the following examples: 

  • 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. 

Conditional Content cannot be displayed in a Contextual Help window.

How search engines handle conditional content

Search engines (including the MindTouch search engine) can only find content that is publicly available. But even if your site is public (which we recommend so your site can get indexed and ranked by web search engines), conditional content allows you to control down to a paragraph what search engines can index and display on their search engine results pages (SERPs) to anonymous users.

Search engines cannot see any content you conditionalize for community members or pro members (since both have to be logged in to either view or contribute). 


How to display content to only certain users

Perform the following steps to conditionalize content on a page:

  1. Navigate to the page on which to add conditional content.
  2. Open the page in Edit mode.
  3. Click the Styles menu drop-down arrow.

  1. Select one of the following options, depending on who should see the content:
  • Conditional text (anonymous only)
  • Conditional text (community member only)
  • Conditional text (pro member only)    

Only content displayed to anonymous users can be indexed by search engines.

Image  of conditional text options in the styles menu

  1. Type your text inside the conditional text box.

Screenshot of the conditional text box for pro members

  1. Click Save.

How to remove conditional content

  1. Navigate to the page from which you want to remove conditional content.
  2. Open the page in Edit mode.
  3. Highlight the conditional content.
  4. Open the Styles menu.
  5. 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.