It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Display a page's current version

Hi

I'm using Confluence 5.7.4.

I was just asked how to display the current page version in the page without having to go to the page history menu. Is it possible to do? Do I need to use a user macro to do this? If it is only possible using macros, would the syntax be something like $content.version?

Thanks!

2 answers

1 accepted

4 votes
Answer accepted

Hi Richard,

A user macro should be the only easy way to do this, and your syntax seems to be right... why not test it? It should return exactly the version number of the page (i.e. "11" for v. 11).

Just make sure to include 

## @noparams

at the top of your user macro.

Great, thanks @Stephen Deutsch. Tried it out and it's as simple as:

## @noparams
$content.version

And now appears in my Macro browser (once I deleted all the comments - it doesn't seem to like it if you leave additional comments so my macro is literally just those two lines of code)

Didn't realise the macros would be so easy actually, that's why I was wary of trying it out :smile:

Many thanks for your help!

Like # people like this

No problem, glad I could help!

We have the Cloud version of Confluence, and I would like to show the current version # on a PDF export.  Is this possible?   

Like mawi likes this

Hi @Michelle Oliveri

Using Scroll PDF Exporter for Cloud you can simply define a placeholder in your template to display the revision number of the page you're exporting.

You can find further information about all the available placeholders in our documentation: for your case the "Page Revision" placeholder is the one to look at.

Hope this helps.

Best,
Nils

Hi @Michelle Oliveri,

You can also use QC Documents for Confluence Cloud plugin to run the {qc-property-macro} . Using this macro you will be able to export the version of the context like this 

{qc-property-macro:property=Title}

The plugin is available for the Confluence Cloud.

More information is available here .

Like Brad_Oaks likes this

Hi @Evangelos_Mantadakis

Thank you for your reply!  The solution looks very interesting.  I will let my manager know. 

Kindest regards,

Michelle

Hi ... just surfing around and saw this question .. apparently unanswered

The closest I found is the "Change History" macro but it simply displays ALL version history as seen on Page History via the ellipsis

Pity the macro doesn't have a setting for only showing the last version

 

But thinking a bit further ...

displaying page version "Version 5639" probably doesn't help very much

The date of the last page edit and the author is shown under the page title which probably makes more contextual sense than a version number

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

What project did you transition or start on Confluence with the shift to remote work?

It’s been great to hear from fellow users over the last few weeks about the best tips and fun moments you’ve had working on Confluence since the transition to working remote. I’d love to keep the c...

227 views 3 8
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you