cancel
Showing results for 
Search instead for 
Did you mean: 

web-client-config-custom.xml not working

giustrov
Champ in-the-making
Champ in-the-making
Hello,
with Alfresco 2.9B on tomcat, I'm trying to do some of the basic onfigurations described in http://wiki.alfresco.com/wiki/Simple_Customisations, but after modifying web-client-config-custom.xml  and restarting alfresco, absoluty nothing happens.
I've put modifications on:
- ALFRESCO_HOME/tomcat/shared/classes/alfresco/extension/web-client-config-custom.xml
- ALFRESCO_HOME/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/extension/web-client-config-custom.xml
- ALFRESCO_HOME/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/web-client-config-custom.xml
but nothing works.

Any help will be appreciated.
Thanks
Giuseppe Trovato
5 REPLIES 5

pmonks
Star Contributor
Star Contributor
Depending on what you've customised in that file, you might be running into the issue described at http://issues.alfresco.com/browse/WCM-786.

The upshot is that creating a web-client-config-custom.xml file in ${TOMCAT_HOME}/shared/classes/alfresco/extension/ will work, but some (but not all) of the configuration blocks in that file aren't picked up correctly (they fail to override the defaults).

Cheers,
Peter

giustrov
Champ in-the-making
Champ in-the-making
Unluckily my issue is not related to workflow. The two configurations I'd like to change are:
- adding properties (title, description) to simple search
- Changing Breadcrumb Mode
Also tried to add them directly in  TOMCAT_HOME/webapps/alfresco/WEB-INF/classes/alfresco/web-client-config.xml, without success.

For my installation, it's crucial especially the first thing (simple search). Any idea?

Thank you

jpfi
Champ in-the-making
Champ in-the-making
Hi,
please post your config file here and let us check if it is wellformed and valid.
Cheers, Jan

giustrov
Champ in-the-making
Champ in-the-making
This is what i put in  web-client-config-custom.xml:


   <config>
      <client>
         <simple-search-additional-attributes>
            <qname>{http://www.alfresco.org/model/content/1.0}description</qname>
            <qname>{http://www.alfresco.org/model/content/1.0}title</qname>
         </simple-search-additional-attributes>
      </client>
   </config>

   <config>
      <client>
         <breadcrumb-mode>location</breadcrumb-mode>
      </client>
   </config>

Giuseppe

giustrov
Champ in-the-making
Champ in-the-making
For now I've solved inserting this fragment

<search-max-results>100</search-max-results>
<simple-search-additional-attributes>
<qname>{http://www.alfresco.org/model/content/1.0}description</qname>
<qname>{http://www.alfresco.org/model/content/1.0}title</qname>
<qname>{http://www.alfresco.org/model/content/1.0}author</qname>
</simple-search-additional-attributes>

directly in TOMCAT_HOME/webapps/alfresco/WEB-INF/classes/alfresco/web-client-config.xml, inside an existing <config><client> tag.

Regards
Giuseppe Trovato