cancel
Showing results for 
Search instead for 
Did you mean: 

Customizing site-finder

Not applicable
Hey to everybody,

I just made some customizations on the code of the site-finder component (site-finder.get.html.ftl and site-finder.js). The changes works as I expect. While developing I worked in the webapp folder of my alfresco installation (webapp/share). Now everything is working I want to move the two script-files to a maven project and create an amp or a jar. So I moved the site-finder.get.html.ftl to the dir src\main\resources\alfresco\site-webscripts\org\alfresco\components\site-finder and the  site-finder.js to the dir src\main\resources\META-INF\components\site-finder in my maven project. I created a jar-file but the share app does not recognize my changes. Could anybody give me a hint how to do it right.

Thx in advance.
Christian
2 REPLIES 2

dantuffery
Champ in-the-making
Champ in-the-making
Hi

You need to place your customised  'site-finder.get.html.ftl'  file under the 'web-extension' directory so that it overrides the original Alfresco file. So, the path should be:

src\main\resources\alfresco\web-extension\site-webscripts\org\alfresco\components\site-finder

Use the 'src\main\resources\alfresco\site-webscripts' directory for your own files - stuff that is not overriding Alfresco code.

The path for the customised 'site-finder.js' looks correct, try refreshing your browser cache.

Dan

Not applicable
Yeah, thanks Dan. It works fine.