Show placeholder text to anonymous users until content is approved using Visibility and Comala Document Management

Show placeholder text to anonymous users until content is approved using Visibility and Comala Document Management

This use case demonstrates how to use the Visibility integration with Comala Document Management to manage access to draft content for users who are not logged in.

  • The Visibility - Hide if macro restricts access to draft content for users who are not logged in.

  • The Visibility - Show if macro displays placeholder text to users who are not logged in until the page is approved.

Before you begin:

  • Verify that both the Visibility and Comala Document Management apps are installed and enabled.

  • Apply the Basic Approval Workflow to the Confluence page or space. This workflow includes the following states:

    • Review

    • Rejected

    • Approved

Step 1 - Hide draft content from anonymous users

  1. In page edit mode, insert the Hide if macro.

    Screenshot of the Visibility - Hide if macro.
    The Visibility - Hide if macro
  2. Configure the Hide if macro to hide its content from anonymous users when the page is not in the Approved state, then click Insert.

    Screenshot of the Hide if macro editor
    The Hide if macro editor
    1. From the Match using menu, select All to ensure that the content is hidden only when both conditions (b and c) are met.

    2. From the Comala Workflow Status menu, select Review and Rejected to set a condition for when the page is in either of these states.

    3. From the Advanced filters > Authentication type menu, select Anonymous to set a condition for when the page viewer is not logged in.

  3. Within the Hide if macro body, enter the content you want to hide from anonymous users until it is approved.

    Screenshot of the Hide if macro content editor.
    The Hide if macro content editor

Step 2 - Display placeholder text to anonymous users until the content is approved

  1. After the Hide if macro, insert the Show if macro.

    Screenshot of the Visibility - Show if macro.
    The Visibility - Show if macro
  2. Configure the Show if macro to display its content to anonymous users only when the page is not in the Approved state, then click Insert.

    Screenshot of the Show if macro editor.
    The Show if macro editor
    1. From the Match using menu, select All to ensure that the content is displayed only when both conditions (b and c) are met.

    2. From the Comala Workflow Status menu, select Review and Rejected to set a condition for when the page is in either of these states.

    3. From the Advanced filters > Authentication type, select Anonymous to set a condition for when the page viewer is not logged in.

  3. Within the macro body, enter the content that you want to display to anonymous users until the draft content is approved.

    Screenshot of the Show if macro content editor.
    The Show if macro content editor
  4. Save the page.

 

Need support? Create a request with our support team.

Copyright © 2005 - 2025 Appfire | All rights reserved.