Display text when creating/editing a page

Is it possible to display some text that only appears when a page is being edited and gets hidden when the page is displayed?

We have a number of templates where it would be helpful to display some instructions when a user is editing the page.

I'm guessing this is probably straight forward, so please exclude the noob question. Any ideas welcome!

3 answers

1 accepted

1 vote
Accepted answer

There's a really dirty and yet elegant trick for this in v3. I don't know if it's valid for 4, I haven't tried it, but the principle should be similar. The downside to this is that it's embedded in the page itself, so it's not an obvious box outside the editing area.

Create a user macro with a sensible name like "hidden". Make sure it renders the body of the input, and then don't put anything whatsoever in the body output. You can then write text like


My document says

{hidden} Please don't put rude words in here {hidden}

that the penguin needs to go for a walk


This will be shown when the user edits the page, but just viewing it will give them:

My document says that the penguin needs to go for a walk

Thanks Nic. I've implemented the macro and agree that it is an elegant solution. Given the new graphical layout of the text editor, the content within the macro is displayed nicely within a border and with a title. The content also accepts text formatting, so all in all a simple but really neat outcome. Thanks again.

which confluence are you using - with the wikimarkup editor in 3.5.x, that is actually done with the "markup quickreference" on the side. So modifying that page on the server should suffice. Otherwise - check the sourcecode and copy those pages, replacing the "editor" page with your design.

Only trouble is, that is not "release-safe". So a feature-request in Jira and the link to vote on it here would be necessary :)

Remember to post your solution here, once you got it, that would be "perfect".

Hi Josch

We're using Confluence 4.2.3.

I'm not looking to provide standard text that is the same on every page, but rather intructions specific the template being used. I had pictured some kind of outcome like "comments" at the top of the page that don't appear when it's in normal View mode. I had in mind that the content would be part of the template and therefore copied into the page content when it's created from the template.

Thanks, Andrew

I use the show-if macro from the CustomWare Visibility plugin to show messages to editors which only show up in that mode. One of the parameters for this macro relates to the "mode" the page is in: edit, view.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

1,035 views 51 8
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