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

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.

Hi,
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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

914 views 23 12
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