I'm trying to create a user macro that displays the latest page version and the date the latest page was created. (Its part of a project to manage version control). I know the Change History macro exists but its too verbose.
I started to write a user macro as follows:
## Macro title: Page Version
## Macro has a body: N
## Body processing: No macro body
## Developed by: David Gibbons
## Date created: 09/12/2015
## Installed by:
<p> Page Version $confPage.version</p>
<p> Page Version $confPage.versionComment<p>
When the macro runs it will display the current Confluence version but won't display the page version. Am I using the right variable or should I be using a different method,
|is the variable which holds reference to your current page|
## @noparams <p>Confluence: $generalUtil.versionNumber<p> <p> Page Version: $content.version</p> <p> Page Version comment: $content.versionComment</p>
Including the macro body and parameters, the following Confluence objects are available to the macro:
The body of the macro (if the macro has a body)
Named parameters ("foo", "bar") passed to your macro.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
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 ...
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!
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