What is the best way to remove the version informations from confluence?

Hi,

for security reasons, I want to remove the version from my confluence site. I have found three places on the page where the version number is displayed. Two times in the footer

<ul id="poweredby">
        <li class="noprint">Gesteuert von <a href="http://www.atlassian.com/software/confluence" class="hover-footer-link">Atlassian Confluence</a> <span id='footer-build-information'>5.4.3</span>, <a href="http://www.atlassian.com/software/confluence/overview/team-collaboration-software?utm_source=confluence-footer" class="hover-footer-link">der Kollaborationssoftware für Teams</a></li>
        <li class="print-only">Gedruckt von Atlassian Confluence 5.4.3, der Kollaborationssoftware für Teams.</li>
        <li class="noprint"><a href="http://jira.atlassian.com/secure/BrowseProject.jspa?id=10470" class="hover-footer-link">Fehler/Anregungen</a></li>
        <li class="noprint"><a href="http://www.atlassian.com/about/connected.jsp?s_kwcid=Confluence-stayintouch" class="hover-footer-link">Atlassian-News</a></li>
    </ul>

 and once in the head tag

<meta name="ajs-version-number" content="5.4.3">

of the site.

 

On this site https://confluence.atlassian.com/display/CONFKB/How+to+Edit+the+Footer+in+Confluence Atlassian describe that i should change the footer-content.vm. This is the right section in footer-content.vm :

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


First of all I remove this line:

"<span id='footer-build-information'>$generalUtil.versionNumber</span>"

In the next step I want to remove the second parameter of getText() , this works for me, but I'm not sure if this the right way. Maybe I should only replace ["$generalUtil.versionNumber"] with an empty string ""?

<li class="print-only">$action.getText('printed.by.atlassian.confluence',["$generalUtil.versionNumber"])</li>

Last but not least, I have no idea how I get out the version from the head area.

 

EDIT:

Ok, I think the footer should look like

<ul id="poweredby">
        <li class="noprint">$action.getText('powered.by.atlassian.confluence',
            [$action.getText('url.atlassian.software.confluence.footer'),
            "",
            $action.getText('url.enterprise.wiki.footer') ])</li>
        <li class="print-only">$action.getText('printed.by.atlassian.confluence',[""])</li>
        <li class="noprint"><a href="$action.getText('url.bug.feature.request')" class="hover-footer-link">$action.getText('bug.feature.request')</a></li>
        <li class="noprint"><a href="$action.getText('url.footer.atlassian.news')" class="hover-footer-link">$action.getText('footer.atlassian.news')</a></li>
</ul>

Any objections?

 

1 answer

0 votes

Hi!

I believe that you are in the correct path. If you remove the $generalUtil.versionNumber it won't call the confluence version as well. Test these changes and always backup the original file in case you need to restore it.

Cheers,

Rodrigo

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

259 views 2 10
Read article

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