Reputation: 1346
I am using alfresco sdk 2.0.0 which have alfresco share version 5.1.e
This my code to override/replace OOTB file using modules
<module>
<id>Highlight Query Text</id>
<auto-deploy>true</auto-deploy>
<description>Highlight text in web previewer</description>
<version>1.0</version>
<customizations>
<customization>
<targetPackageRoot>org.alfresco.components.preview</targetPackageRoot>
<sourcePackageRoot>com.some.components.preview</sourcePackageRoot>
</customization>
</customizations>
</module>
In <targetPackageRoot>org.alfresco.components.preview</targetPackageRoot>
This overrides/replaces site-webscripts/org/alfresco/components/preview folder with site-webscripts/com/some/components/preview
Is there any way to override only single file ? like : \org\alfresco\components\preview\web-preview.get.html.ftl
with com\some\components\preview\web-preview.get.html.ftl
Upvotes: 0
Views: 115
Reputation: 46543
Only the files located in the sourcePackageRoot
will override the default ones, so in your case, only add your web-preview.get.html.ftl
in the com\some\components\preview
package.
Upvotes: 1