Hides a page fragment from a user with read-only permissions.

Audience
Iteration
Production
Category
Confluence Content
Since
1.3
projectdoc Toolbox Version

This is a simple macro that will reveal it's body content only to users that have permissions to write.

If you provide controls for creating new pages from templates, set these controls in the body of the macro.

Properties

Replacement

The text to show instead of the hidden page fragment.

Inline

If checked, the replacement element is rendered inline, otherwise as a block.

Example

To hide the Create from Template macro from users with read-only permissions, use the following:

Example: Hide from Anonymous User with Create From Template Macro
<ac:structured-macro ac:name="projectdoc-hide-from-reader">
  <ac:parameter ac:name="atlassian-macro-output-type">BLOCK</ac:parameter>
    <ac:rich-text-body>
      <p>
        <ac:structured-macro ac:name="create-from-template">
        <ac:parameter ac:name="buttonLabel">Create New</ac:parameter>
        <ac:parameter ac:name="spaceKey">
          <ri:space ri:space-key="MYSPACE"/>
        </ac:parameter>
        ...
      </ac:structured-macro>
    </p>
  </ac:rich-text-body>
</ac:structured-macro>

Related macros

projectdoc Toolbox

The Hide From Reader Macro is part of the commercial The projectdoc Toolbox for Atlassian Confluence plugin with the same features

This is not a security tool! The information is still stored in plain text on the server. The content is simply not rendered for the users lacking access permissions. But it will eventually be displayed for users who try to reveal it (e.g. through searches, previews, source code, history, etc.).