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
In page edit mode, insert the Hide if macro.
The Visibility - Hide if macroConfigure the Hide if macro to hide its content from anonymous users when the page is not in the Approved state, then click Insert.
The Hide if macro editorFrom the Match using menu, select All to ensure that the content is hidden only when both conditions (b and c) are met.
From the Comala Workflow Status menu, select Review and Rejected to set a condition for when the page is in either of these states.
From the Advanced filters > Authentication type menu, select Anonymous to set a condition for when the page viewer is not logged in.
Within the Hide if macro body, enter the content you want to hide from anonymous users until it is approved.
The Hide if macro content editor
Step 2 - Display placeholder text to anonymous users until the content is approved
After the Hide if macro, insert the Show if macro.
The Visibility - Show if macroConfigure the Show if macro to display its content to anonymous users only when the page is not in the Approved state, then click Insert.
The Show if macro editorFrom the Match using menu, select All to ensure that the content is displayed only when both conditions (b and c) are met.
From the Comala Workflow Status menu, select Review and Rejected to set a condition for when the page is in either of these states.
From the Advanced filters > Authentication type, select Anonymous to set a condition for when the page viewer is not logged in.
Within the macro body, enter the content that you want to display to anonymous users until the draft content is approved.
The Show if macro content editorSave the page.
Need support? Create a request with our support team.
Copyright © 2005 - 2025 Appfire | All rights reserved.
