cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco link in CIFS and file-servers.xml

simon
Champ in-the-making
Champ in-the-making
Hi,

We extended the file-servers.xml file and changed some settings in this file, it works (CIFS hostname for example). There is some other setting in this file to change the link to the Alfresco folder when using CIFS:

<urlFile>
   <filename>__AlfrescoClient.url</filename>
   <webpath>http://<ourserver>/alfresco/</webpath>
</urlFile>

Rebooted Alfresco but the URL isn't changed, still shows http://localhost:8080/… Is this supposed to work?
4 REPLIES 4

simon
Champ in-the-making
Champ in-the-making
*bump*

steve
Champ in-the-making
Champ in-the-making
Hello Simon,

I am guessing that you are overriding by using the 'file-servers-custom.xml' in the extension directory?

To change the link you should have something like this:

   <config evaluator="string-compare" condition="Filesystems" replace="true">

      <filesystems>
     
          <!– Default share –>
         <filesystem name="Alfresco">
   
            <store>workspace://SpacesStore</store>
            <rootPath>/app:company_home</rootPath>
   
            <!– Enable Web client launch shortcut in all folders –>
            <urlFile>
   
               <!– Change the filename as required, keeping the .url extension –>
               <filename>_Alfresco.url</filename>
   
               <!– Change 'localhost' to the name or IP of the Alfresco server –>
               <webpath>http://<ourserver>:8080/alfresco/</webpath>
   
            </urlFile>

         </filesystem>
      </filesystems>

Hope this helps,

Steve

simon
Champ in-the-making
Champ in-the-making
Thanks Steve, problem solved.
I am guessing that you are overriding by using the 'file-servers-custom.xml' in the extension directory?
Yes I am and I changed the configuration like you did but I forgot to add the
replace="true"
It works when I add this last attribute. Why does the overridden rule method change for this rule only? The replace attribute was never needed (not needed for other override rules) and now for this specific rule it suddenly is?

steve
Champ in-the-making
Champ in-the-making
Hello Simon,

The file follows the syntax mentioned here:
http://wiki.alfresco.com/wiki/Web_Client_Configuration_Guide#Configuration_Approach

Hope this helps,

Steve