I'm packaging my Share modifications to a Jar-file and install that directly to tomcat/share/WEB-INF/lib.
Hiding Site components from modification screen was pretty straight forward and works great. Now I'm trying to hide certain components from created Sites. I'm using modified alfresco/web-extension/site-data/presets/presets.xml file and declare there how site-dashboard (<preset id="site-dashboard">) should look like and what components it should contain. With this modification I get errors every time I try to create new Sites. Based on Share debug log it seems that Sites are created one component at the time (REST-call for each configured component). It seems that Share merges my custom configuration and original version. This causes double calls for certain components.
Is there any way to prevent this merge? Like override=true in basic Alfresco configurations.