如何在Alfresco的slingshot.properties中覆盖值?

问题描述 投票:0回答:1

我正在使用alfresco6。我在web-extension文件夹下创建了自定义xml和自定义属性文件。我的更改未得到反映。正确的方法是什么?

alfresco alfresco-share alfresco-enterprise
1个回答
0
投票

您必须将自定义弹弓属性文件放置在web-extension \ messages文件夹下,并且需要创建并放置自定义弹弓上下文文件以导入自定义弹弓属性文件。

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
  <bean id="org_alfresco_module_custom_propertyBootstrap" class="org.alfresco.i18n.ResourceBundleBootstrapComponent">
      <property name="resourceBundles">
         <list>
            <value>alfresco.web-extension.messages.customslingshot</value>
         </list>
      </property>
   </bean>   
</beans>

将其另存为Web扩展名文件夹下的custom-slingshot-application-context.xml文件。

在Web-extension \ messages下创建customslingshot.properties],并在customlingshot.properties文件中覆盖该消息。

希望这会有所帮助

注意:这在Alfresco 5.x上有效,并且应该在Alfresco 6.0上有效。如果您遇到任何问题,请告诉我。

© www.soinside.com 2019 - 2024. All rights reserved.