cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic models - web-client-config-custom - more than 1?

msvoren
Champ in-the-making
Champ in-the-making
Hi all!
I'm using dynamic modeling for web-client configuration,
I have my web-client-config-custom.xml file in Data Dictionary.

The question is, can I have more than 1 configuration file there?

The intension is to break this file in 2-3 files, to have just 1 file for e.g. displaying document types, displaying stuff in advanced search, configuring appereance for custom spaces, setting icons..
3 REPLIES 3

dhalupa
Champ on-the-rise
Champ on-the-rise
It is possible, but you will have to specify locations of your additional custom config files. Take a look at webClientConfigSource bean in alfresco/web-client-application-context.xml for an example how the location of default web-client-config-custom.xml is specified.

janv
Employee
Employee
As per previous post, you can override the webClientConfigSource bean (http://wiki.alfresco.com/wiki/Web_Client_Configuration_Guide#Configure_Additional_Config_Files) although, to avoid editing web-client-application-context.xml, you should add an extra context file to your contextConfigLocation (web.xml) which includes your overridden bean, eg.

<context-param>
   <param-name>contextConfigLocation</param-name>
   <param-value>
      …
      …
      classpath*:alfresco/extension/custom-web-context.xml
   </param-value>
   <description>Spring config file locations</description>
</context-param>

I have also added this extension point to HEAD, so it should be available in the next nightly build (2.9.0C_dev).

Regards,
Jan

msvoren
Champ in-the-making
Champ in-the-making
thanks everybody.
that was helpful