Display the page version

I would like to diplay the page version in a Confluence page. I know I can include the change history via macro, but that results over time in a very long list. And I am actually interested in the version and maybe the author of the change only. I don't really need the entire change log.

3 answers

1 accepted

If you want to display the change version (and the author) in all pages of Confluence, you can do that by modifying the layout (Confluence Admin > Layouts). Click "Create Custom" for Page Layout. Depending on where you want to put this information in the page, you can add

$confPage.version

to display the page version, and

$confPage.lastModifierName

to display the author

Just ensure that you use these variables after the line:

#set ($confPage = $helper.page)

Thanks, that seems exactly what I am looking for. However, Confluence asks me to deactivate the design first and I can't see where I have to do that in the administration.

You can do it in Confluence Admin and click "Layouts". Can you find it?

Yes I found layouts, but then the following message appears :

Sie können die Site-Gestaltung nicht anpassen, während ein Design aktiv ist. Sie müssen zuerst das derzeit konfigurierte Design deaktivieren.


This seems to apply only for the Default Theme. Are you using Documentation Theme as the default Confluence theme? Then you have to edit the Velocity template file in the jar file instead. Go to <confluence-install>/confluence/WEB-INF/classes/com/atlassian/confluence/setup and open atlassian-bundled-plugins.zip. Locate and open doctheme-x.x.x.jar file. The template file for the page is in page.vmd which resides in doctheme/decorators folder.

Which Version of Conlfuence are you using? Are yo uusing any customization?

Confluence by default shows this text under the tittle of the page:

Added by User Name, last edited by User Name on Jul 24, 2012 (view change)


Isn't that information enough? You get the user name and the date of the last change (much more meaningful than a versioin number).

We are using Confluence 4.2. And no, that information is not enough, as it is not included in PDFs and the very same page could be edited within a day more than once. As we also provide certain documentation to our customers, such as requirement spec, those pages need version numbers and the author of that last change.

is there a macro that can be added for a specific page?

for example content.pageversion?

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Friday in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

264 views 11 10
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