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.
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 must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can do it in Confluence Admin and click "Layouts". Can you find it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
is there a macro that can be added for a specific page?
for example content.pageversion?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.