Can I hide instructional content with projectdoc macro in Confluence?

The projectdoc Confluence proivides, amongst other thinfs, three Hide macros

  • Hide from Anonymous User Macro
  • Hide from Reader Macro
  • Hide Macro

I get what the first two are for, but the third one seems to do the same thing as the second one. I am curious to know if there is a version that allows me to simply hide content such that it is only rendered when the page is being edited. Sometimes I want to include instructions in a page and this seems like a nice way to do it.

I do note that content in a Document Properties Marker box that is not in the table of properties is only rendered in the editor, so this kind of does what I want, but seems like a hack when Hide Macro would appear to describe what I want.

1 answer

1 accepted

All Hide macros are simply shortcuts for specific needs.

The Hide Macro is intended to store values in some not-so-critical-password-like-things-you-probably-do-not-want-to-use use cases smile. Something like admin/admin for an intranet team wiki. Since everyone can see the value in view source, this is of very limited value. The difference to the Hide from Reader Macro is that the content of the Hide Macro is only plain text.

For your use case I suppose you could use a regular Section Macro and hide it with the Hide Parameter. If you need instructions without a title - for instance if you want instructions inside sections - you could also use the Content Marker Macro. The Section Macro has the advantage, that the title is 'greyed out' and could read something like 'Tips for the Author'.

 

Here is what it would look like in edit mode:

upload.png

And this is the view:

upload2.png

PS: You could also set the level of the "tip section" to make it appear smaller (and may also place it inside sections).

upload3.png

Perfect - thanks for your prompt reply. 

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,088 views 17 14
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you