As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Hi,
I am using SDK 3.0 and CE 5.2. I want to override aikau/src/main/resources/alfresco/services/SiteService.js and the corresponding properties file aikau/src/main/resources/alfresco/services/i18n/SiteService.properties.
How can I override these files ?
Thanks
Hiten Rastogi
There is no way to reliably "override" these files. They are JAR-packaged and the path is based on the Aikau JAR version - so you would also have to provide an override for any version of Aikau that may be located on the classpath.
I recommend not trying to override these files - instead create an extension of the service and provide customisations to replace the usage of "alfresco/services/SiteService" with your custom service in the JSON model.
Thanks Alex,
Can you please point to me an example that can help me in extending the service and replacing the i18n property file with my custom property file.
I don't have an example for that specific service, but the principle is similar to how you would extend any module. E.g. my small ProcessWidgets.js extension could serve as an example as well.