【发布时间】:2019-10-24 21:44:03
【问题描述】:
我正在使用 alfresco 6。我在 web-extension 文件夹下创建了自定义 xml 和自定义属性文件。我的更改没有得到反映。正确的做法是什么?
【问题讨论】:
标签: alfresco alfresco-share alfresco-enterprise
我正在使用 alfresco 6。我在 web-extension 文件夹下创建了自定义 xml 和自定义属性文件。我的更改没有得到反映。正确的做法是什么?
【问题讨论】:
标签: alfresco alfresco-share alfresco-enterprise
您必须将自定义弹弓属性文件放在 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>
将其另存为 custom-slingshot-application-context.xml 文件,位于 web-extension 文件夹下。
在 web-extension\messages 下创建 customslingshot.properties 并覆盖 customslingshot.properties 文件中的消息。
希望对你有帮助
注意:这适用于 Alfresco 5.x,它应该适用于 Alfresco 6.0。如果您遇到任何问题,请告诉我。
【讨论】: