cancel
Showing results for 
Search instead for 
Did you mean: 

How to overwrite web-client-config-wcm.xml?

v912485
Champ in-the-making
Champ in-the-making
Currently I make the changes in the web-client-config-wcm.xml file itself, but obviously these changes get erase with each new deployment of the war file.
I have tried creating custom-web-client-config-wcm.xml and web-client-config-wcm-custom.xml files in the extension folder but no such luck.

Any suggestions would be much appreciated.
Allan
3 REPLIES 3

zaizi
Champ in-the-making
Champ in-the-making
These are the web client config sources defined in web-client-application-context.xml.

Either stick it in alfresco/extension/web-client-config-custom.xml on the file system on upload it to Alfresco under Data Dictionary/Web Client Extension/web-client-config-custom.xml.



   <!– ===================================== –>
   <!– Web Client Config Sources             –>
   <!– ===================================== –>
  
   <bean id="webClientConfigSource" parent="repoUrlConfigSource">
      <constructor-arg>
         <list>
            <value>classpath:alfresco/web-client-config.xml</value>
            <value>classpath:alfresco/web-client-config-dialogs.xml</value>
            <value>classpath:alfresco/web-client-config-wizards.xml</value>
            <value>classpath:alfresco/web-client-config-properties.xml</value>
            <value>classpath:alfresco/web-client-config-navigation.xml</value>
            <value>classpath:alfresco/web-client-config-wcm.xml</value>
            <value>classpath:alfresco/web-client-config-actions.xml</value>
            <value>classpath:alfresco/web-client-config-forum-actions.xml</value>

            <value>classpath:alfresco/web-client-config-wcm-actions.xml</value>
            <value>classpath:alfresco/web-client-config-workflow-actions.xml</value>
            <value>classpath:alfresco/extension/web-client-config-custom.xml</value>
            <value>jar:*!/META-INF/web-client-config-custom.xml</value>
            <value>workspace://SpacesStore/${spaces.company_home.childname}/${spaces.dictionary.childname}/app:webclient_extension/cm:web-client-config-custom.xml</value>
         </list>
      </constructor-arg>
   </bean>

v912485
Champ in-the-making
Champ in-the-making
Thanks for the quick reply, but is web-client-config-custom.xml not meant for overwriting the web-client-config.xml and not necessarily for overwriting web-client-config-wcm.xml?

In any case I have just tried it and it doesn't seem to work.

Any other suggestions? Many thanks,
Allan

parasjain01
Champ in-the-making
Champ in-the-making
This is an old thread. Just posting the solution for others' reference. I have tried the following for alfresco-3.4.2 and it worked.
Put your custom wcm configuration in tomcat/shared/classes/alfresco/extension/web-client-config-custom.xml
You have to mention

<config replace="true">
to replace the configuration in tomcat/webapps/alfresco/WEB-INF/classes/alfresco