Hide From Anonymous User Macro

Hides a text fragment from an anonymous user.

Audience
Iteration
Production
Category
Confluence Content
Since
1.0
projectdoc Toolbox Version

This is a simple macro that will reveal it's body content only to users that have themselves authenticated with the server.

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

Inline

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

Details

Example

To hide the Create from Template macro from anonymous users, use the following:

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