AnsweredAssumed Answered

Custom web-client-config.xml

Question asked by limarin on Sep 7, 2006
Latest reply on Sep 21, 2006 by gavinc
Hi,

If I need to add another language to the drop down list in the login page, I must add the following to web-client-config-custom.xml:

<config evaluator="string-compare" condition="Languages">
   <languages>
      <language locale="fr_FR">French</language>
   </languages>
</config>

But, I need to remove configuration in condition="Action Wizards". Remove any transformers, actions and conditions.

For this, it is necessary to modify the original file web-client-config.xml?

Another question…

Testing, I remove transformers:

<!– The list of transformers to show in the transform actions –>
      <transformers>
         <!–transformer name="application/vnd.oasis.opendocument.text"/–>
         <!–transformer name="application/vnd.oasis.opendocument.presentation"/–>
         <!–transformer name="application/vnd.oasis.opendocument.spreadsheet"/–>
         <!–transformer name="application/rtf"/–>
         <!–transformer name="text/html"/–>
         <transformer name="application/pdf"/>
         <!–transformer name="text/plain"/–>
         <transformer name="text/xml"/>
         <!–transformer name="application/x-shockwave-flash"/–>
         <!–transformer name="image/gif"/–>
         <!–transformer name="image/jpeg"/–>
         <transformer name="application/msword"/>
         <transformer name="application/vnd.excel"/>
         <!–transformer name="application/vnd.powerpoint"/–>
      </transformers>

and this is ok, I create a rule and in the drop down list in the page the eliminated transformers are not visualized.

But also I remove conditions in the drop down list in the page the eliminated conditions continue being visualized. Why?

<condition-handlers>
         <handler name="compare-mime-type" class="org.alfresco.web.bean.rules.handlers.CompareMimeTypeHandler" />
         <handler name="compare-property-value" class="org.alfresco.web.bean.rules.handlers.PropertyValueHandler" />
         <handler name="has-aspect" class="org.alfresco.web.bean.rules.handlers.HasAspectHandler" />
         <!–handler name="in-category" class="org.alfresco.web.bean.rules.handlers.InCategoryHandler" /–>
         <handler name="is-subtype" class="org.alfresco.web.bean.rules.handlers.IsSubTypeHandler" />
               </condition-handlers>
     
At the moment, I have solved it removing the bean in the file action-services-context.xml

<bean id="in-category" class="org.alfresco.repo.action.evaluator.InCategoryEvaluator" parent="action-condition-evaluator">
        <property name="nodeService">
            <ref bean="nodeService" />
        </property>
        <property name="dictionaryService">
            <ref bean="dictionaryService" />
        </property>
    </bean>
   
Another solution?

Thank you very much

Outcomes