cancel
Showing results for 
Search instead for 
Did you mean: 

Custom js scripts in Share

saxophtrion
Champ in-the-making
Champ in-the-making
Hello, I have some modifications to do in the share. I need to custom some js files which are in share/component…

Usually, when I want to custom the share, I add some files in the Shared folder to apply my modifications.

I read that files in shared/web-extension/… replace the files in share/webapps…

The problem is that I don't know where to put my custom JS files in the shared folder (if this is possible) to replace JS files in share/components …

For example, I'm actually trying to modify the file site-members.js but in the template, when the script is imported, URL always begins by share/res/… whatever I write.

Waiting  for your help Smiley Happy
2 REPLIES 2

kavilash23
Champ on-the-rise
Champ on-the-rise
Hello,

Try putting your customised js in shared\classes\alfresco\web-extension\site-webscripts\org\alfresco\components\site-members!

saxophtrion
Champ in-the-making
Champ in-the-making
Hello ! I already tried that but the template fails in finding the script.

This is how I import it :
 <@script src="${url.context}/res/components/site-members/site-members.js" group="site-members"/> 


I tried a lot of different paths but none of them seemed to work