cancel
Showing results for 
Search instead for 
Did you mean: 

Custom initial location

telesto
Champ in-the-making
Champ in-the-making
Hello,

In the web explorer, i would like custom the start location (without manage each user !)

The line to configure is :  <initial-location>companyhome</initial-location>
in the web config file.

If i put this in  \webapps\alfresco\WEB-INF\classes\alfresco\web-client-config.xml > it's ok
But in shared\classes\alfresco\extension\web-client-config-custom.xml > it's not ok

Why ? The good practice is to change web-client-config-custom.xml and not directly web-client-config.xml ?
I try with the tag <config evaluator="string-compare" condition="Client"> but nothing happen

A idea ?

Olivier (alfresco 3.2R2 windows )
6 REPLIES 6

dmihelj
Champ in-the-making
Champ in-the-making
Can you post contents of your web-client-config-custom.xml file?

telesto
Champ in-the-making
Champ in-the-making
This is the content of shared\classes\alfresco\extension\web-client-config-custom.xml :


<alfresco-config>

   <!– Example of adding languages to the list in the login page –>
   <config evaluator="string-compare" condition="Languages">
      <languages>
         <language locale="fr_FR">French</language>
      </languages>
   </config>
  
   <config evaluator="string-compare" condition="Client">
      <client>
          <!– The default location to display when the browse screen is first shown –>
          <!– This value should be one of 'myalfresco', 'userhome', 'companyhome' or 'guesthome' –>
          <initial-location>companyhome</initial-location>
     <edit-link-type>cifs</edit-link-type>
      </client>
   </config>

</alfresco-config>

It's ok for the language but nothing appen for the two others options (location and link-type)

dmihelj
Champ in-the-making
Champ in-the-making
Try it this way:

<alfresco-config>

<config>
<client>
<!– The default location to display when the browse screen is first shown –>
<!– This value should be one of 'myalfresco', 'userhome', 'companyhome' or 'guesthome' –>
<initial-location>companyhome</initial-location>
<edit-link-type>cifs</edit-link-type>
</client>
</config>

<!– Example of adding languages to the list in the login page –>
<config evaluator="string-compare" condition="Languages">
<languages>
<language locale="fr_FR">French</language>
</languages>
</config>

</alfresco-config>

telesto
Champ in-the-making
Champ in-the-making
It's good , thanks a lot !!!

In web-client-config-custom.xml the sections have to be in the same order than in web-client-config.xml ?

surprising i am…

It's a good tip, tank you.

Olivier

dmihelj
Champ in-the-making
Champ in-the-making
It's good , thanks a lot !!!

In web-client-config-custom.xml the sections have to be in the same order than in web-client-config.xml ?

surprising i am…

It's a good tip, tank you.

Olivier

I removed this from your code <config evaluator="string-compare" condition="Client">.

telesto
Champ in-the-making
Champ in-the-making
Ok !
Thanks for your precisions.
Olivier