Alfresco - removing the footer message

The Community Edition of Alfresco has a footer showing their logo, copyright and some scary phrases to encourage you to buy the Enterprise version straight away.

We needed to remove the scary phrases and I quickly found this useful explanation of what to do by Tom McQueeney.

So I checked out the source, edited PageTag.java to alter the footer and compiled it.

ant -f HEAD/root/build.xml incremental-webclient


I backed up the jar file alfresco-web-client-3.2.jar and then unpacked it, copied in the new PageTag.class and restarted Alfresco.

The result was an Exception saying that the method getCheckContextAgainstPath() in the class ClientConfigElement was not found.

This was because since Tom wrote about his fix, the PageTag code has grown to include a mention of this method which was presumably not in the previous version of ClientConfigElement.

 
ClientConfigElement clientConfig = 
        Application.getClientConfig(pageContext.getServletContext());
// set the context path used by some Alfresco script objects
if (clientConfig != null && clientConfig.getCheckContextAgainstPath())  {
   out.write("setCheckContextAgainstPath(true);");
}

To get around it I compiled the new version of ClientConfigElement.java and copied it into alfresco-web-client-3.2.jar. This fixed the problem and Alfresco does not contain the scary text in the footer.