Display the Confluence Version on a page?
Asked by Chris Ridgeway:

Anyone know if there is a easy macro that would allow me to show the current Confluence version on any page?

e.g. it would output "Confluence 5.4.4"


Answers:
author: Steven F Behnke
body: @chris ridgeway

I got this all figured out for you.

1. You'll need to navigate to your Confluence installation via your browser
2. Click the **Gear** icon and press **Confluence Administration**
3. On the left side, press **User Macros**
4. Press **Create a New User macro**
5. **Paste my below code into Template** and fill out the following form fields as such:
   * **Name -**conf_version
   * **Macro Title -**Confluence Version
   * Fill out description and category as appropriate
   * Ensure Macro Body Processing to **No Body**
   * **Save**
   * You'll now be able to insert this into page. It results in a string like so:

![](../../upfiles/Screen_Shot_2014-08-28_at_4.13.09_PM.png)

```
## Macro title: Confluence Version## Macro has a body: N## Body processing: No macro body#### Developed by: Steven Behnke## Date created: 28/Aug/2014## Installed by: ## @noparams&lt;p&gt;Confluence $generalUtil.versionNumber&lt;/p&gt;
```

comments: author: Steven F Behnke
body: I did this by locating the footer-content.vm file. This is the template written in Velocity that Confluence uses to render the footer of course. This file is locted in ../decorators/includes/footer-content.vm

Inside that file (opened it in a text editor) I simply used the **Find** function to find 'version' and found this:

```
&lt;ul id="poweredby"&gt;            &lt;li class="noprint"&gt;$action.getText('powered.by.atlassian.confluence',            [$action.getText('url.atlassian.software.confluence.footer'),            "&lt;span id='footer-build-information'&gt;$generalUtil.versionNumber&lt;/span&gt;",                $action.getText('url.enterprise.wiki.footer') ])&lt;/li&gt;            &lt;li class="print-only"&gt;$action.getText('printed.by.atlassian.confluence',["$generalUtil.versionNumber"])&lt;/li&gt;            &lt;li class="noprint"&gt;&lt;a href="$action.getText('url.bug.feature.request')" class="hover-footer-link"&gt;$action.getText('bug.feature.request')&lt;/a&gt;&lt;/li&gt;            &lt;li class="noprint"&gt;&lt;a href="$action.getText('url.footer.atlassian.news')" class="hover-footer-link"&gt;$action.getText('footer.atlassian.news')&lt;/a&gt;&lt;/li&gt;        &lt;/ul&gt;
```

The

```
$generalUtil.versionNumber
```

line holds the version of the installation. Calling this in a User Macro (which supports velocity) should just work. So I added a simple, no parameter, no body user macro (doesn't get more simple than this) and added the line. To keep it clean, I put it in a p tag and added Confluence before.


author: Atin Valiyev
body: It is answer to your question

<https://developer.atlassian.com/server/confluence/how-do-i-get-the-information-about-confluence-such-as-version-number-build-number-build-date/>


author: Bruna Griebeler
body: Hi Chris,

Confluence has the version set on the footer, which is a .vm file (velocity template). I would recommend you to take a look there and check which variable is used to show this system information to the page.

comments: author: Chris Ridgeway
body: Hmm. Ours does not, although this may be because we are using a Refined Wiki custom template. Does anyone know the variable?

And if were to learn the variable, how would you display that on a page? I'm assuming some kind of user macro? Any quick help on how that would work? Not a dev here.


author: Chris Ridgeway
body: As a sidenote, I have not marked this resolved or answered because I still don't understand how to implement a solution. Any other takers? Thanks!


Tags: confluence-administration