Hide From Viewer Macro

Hides a text fragment from a user that has no edit permissions.

Description

Hides a text fragment from a user that has no edit permissions. This helps to remove clutter from the document that would distract the attention of the reader.

Properties

Replacement

The text to show instead of the hidden text.

Inline

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

Details

Example

To hide the Create from Template macro from users without edit permissions, use the following:

Example: Hide from Anonymous User with Create From Template Macro
<ac:structured-macro ac:name="projectdoc-hide">
  <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

Hide Macros

Macros whose main concern is to hide content.

Macro Short Description
Hides a text fragment from an anonymous user.
Hides a page fragment from a user with read-only permissions.

Content Macros

Macros that allow their content to be hidden.

Macro Short Description
Marks a piece of content within a document. This content can be referenced for transclusion.
Renders a section, if the body is not empty. Supports authors to create content, clutter-free rendering without empty sections. Allows to transclude the content.