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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.