cancel
Showing results for 
Search instead for 
Did you mean: 

Where do extended core javascript files go?

ericnk
Champ on-the-rise
Champ on-the-rise
Hi,

I'm customizing a core javascript template file.  The file (dod5015-evaluator.js) currently resides at …

alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary

I don't want to modify one of the core files if I can just as easily extend/override it.  The problem is, I'm not sure where to place the modified version of this file.  Alfresco has an "extension" folder where I place modified and overridden .xml configuration files, but when I place this file in with them, it has no effect.  I've tried placing the file in a file/folder structure similar to the original, but underneath alfresco/extension, something like… 

alfresco/extension/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/dod5015-evaluator.js

… but that doesn't work either.  Can anyone tell me where the modified version of this file is supposed to be placed?  I look forward to and appreciate  any suggestions or comments anyone can offer.  Thank you.

Eric
4 REPLIES 4

stevegreenbaum
Champ in-the-making
Champ in-the-making
Surf components go in web-extension path….not sure of the exact path for this particular component, but something like alfresco/web-extension/site-webscripts/org/alfresco/slingshot/documentlibrary/dod5015-evaluator.js

ericnk
Champ on-the-rise
Champ on-the-rise
Steve,

Thank you for your reply.  It's refreshing to receive a reply so quickly as I haven't had such luck with most of my other posts in this forum.  Unfortunately, your suggestion did not work.  I tried various other permutations of the file/folder structure.  I even put the same folder structure with the modified file under share's web-extension folder.  But, nothing has worked thus far.  I fear I will have to modify the original and track it across alfresco upgrades, restoring it each time.  If anyone else has any suggestions, again, I appreciate anything anyone has to offer.  Thanks again, Steve, for your prompt reply.

Best Regards,

Eric

stevegreenbaum
Champ in-the-making
Champ in-the-making
You jogged my memory that I have had difficulty in the past as well overriding web objects like .js and .css file in the web-extension directory.  I never found a resolution.  The other web script components were easy to override as long as I mimicked their original folder structure under web-extension.

Regarding response times in the forums, I think the general issue is that most people only go to the forum to ask questions when they are having a particular problem.  How often does anyone go to a technical forum just to answer questions?  I do, usually when I have a long running process and I have a few minutes (like yesterday when my Amazon server was trying to install AD).  Otherwise, I think there are just too many new posts to be answered by the Alfresco engineers.  Not sure it is even reasonable to expect them to be able to answer all of them.

ericnk
Champ on-the-rise
Champ on-the-rise
Steve,

Thanks for your reply.  I understand a little better now why the response time in general isn't as quick as I would like it to be.  I will have to learn to be more patient.   Smiley Happy   I will just track the modified original file for now until a solution presents itself.  Thanks again.

Regards,

Eric