cancel
Showing results for 
Search instead for 
Did you mean: 

overriding webscripts doesn`t work...

wurstgelee
Champ in-the-making
Champ in-the-making
…but that´s maybe due to me being dumb.

I am trying to override search.lib.js in the current community nightly 4.2.d build (as of july 2nd, 2013), so I copied

tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/search/search.lib.js


to

tomcat/webapps/alfresco/WEB-INF/classes/alfresco/extension/templates/webscripts/org/alfresco/slingshot/search/search.lib.js


This should be the right path, or am I missing something?

If I change the original file, changes are picked up. If I change something in the copied file (the one in the extension dir), nothing happens.


According to this post, it should be the correct extension path.


Am I overworked? Or just dumb? Or is there another explanation?

Help me please! Smiley Wink



edit: double checked the directory:

[root@somesystemname /]# find /opt/alfresco-4.2.d -name "search.lib.js" 
/opt/alfresco-4.2.d/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/search/search.lib.js
/opt/alfresco-4.2.d/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/extension/templates/webscripts/org/alfresco/slingshot/search/search.lib.js


Looks ok, doesn't it?
1 REPLY 1

afaust
Legendary Innovator
Legendary Innovator
Hello,

the extension lookup does not work for .lib.js / .lib.ftl files. Only the actual web script files will get picked up automatically from the extension path. If you want to change the .lib.js in the extension path, you also need to change all the web script files that include the .lib.js on the extension path as well (change their <import> directive at the top of the file - grep for the list of .js to change).

Regards
Axel