I am using Confluence Cloud.
Is there a way to hide content on a page from viewers? For instance notes that only the page owner needs to see that are specific to part of the content and need to see while in Edit mode, but don't need viewers to see?
There is a trick I've used for this, but it's a bit clunky the way I do it, so I'd really be very grateful if anyone could give me a better way to do it.
If you use a template to create a page, there are some that contain "instructional text". In edit mode, this is grey and suggests that you might want to put something in. It is not shown in the plain view mode of the page at all.
That's exactly what you need, but my issue is that I don't know how to do it when you're not in a template. The reason I say it's clunky is that you can open a page with instructional text on it, select a chunk, then paste it back into the page you want it on, and then expand on it. But you can't insert it directly in edit mode.
I know this is an old thread, but it came up in a recent search so I thought I'd put in my $0.02. I only use server but I typically use the standard Page Properties macro and just check the Hidden box. You can put anything you want in the body of the macro and only editors will see it. You just have to be careful and that you use IDs for anything you want showing up in Page Properties Reports.
This works fine but I was searching to see if there was an alternative/more elegant solution.
If you are using Server you can check out this macro: https://marketplace.atlassian.com/plugins/net.customware.confluence.plugin.visibility/server/overview
The Visibility add-on contains macros which allow you to show or hide content based on a user's name, groups, space access, etc.
If you are using cloud, that macro won't work and you can ignore my answer.
A slightly less clunky method is to use the Confluence Source Editor add-on, then add this where you want the note to be:
<ac:placeholder>This is text only visible in edit mode.</ac:placeholder>
Unfortunately, the add-on is only available for server.
My customer didn't like clunky.
The following user macro allows the user to enter a note to authors (if used in a template for example) that appears in the macro box title and a checkbox to view/hide the content.
Create a User Macro with:
Macro Name: hidden_stuff
Macro Title: Hidden Stuff
Macro Body Processing: Rendered
## @param Note:desc=Example: The content below will not appear in your document.
## @param Hidden:type=boolean|default=true|desc=Uncheck to temporarily view the content in your document.
#if ($paramHidden == false)
Hi my Community friends! For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...
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!
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