AnsweredAssumed Answered

[Solved] Customizing WebScripts by overriding some files

Question asked by teemus on Oct 30, 2009
I'm packaging my Share modifications to a Jar-file that I install directly to tomcat/share/WEB-INF/lib.

I'm overriding some of the files from Share's WebScripts in my own Jar with path prefix alfresco/web-extension/site-webscripts. This works really well with some scripts e.g. org.alfresco.components.footer and org.alfresco.modules.create-site.get*. For example for the footer I overrode  just the Freemarker template (footer.get.html.ftl). But with some scripts this doesn't work at all. With org.alfresco.components.header it seems that at least some of the mandatory JavaScripts are not being executed and this causes exceptions during Freemarker template parsing (e.g. user.isGuest is undefined).

Does anyone know if there's some workaround for this or should this kind of approach even work at all?

This one was my own stupid mistake. I used file from SVN as a template and built against 3.2r. Of course file had changed…