alfresco - How to override a value from slingshot.properties in Alfresco?
问题描述
I am using alfresco 6. I have created custom xml and a custom properties file under web-extension folder. My changes are not getting reflected. What's the correct way to do it?
解决方案
您必须将自定义弹弓属性文件放在 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-extension 文件夹下的custom-slingshot-application-context.xml文件。
在 web-extension\messages 下创建customlingshot.properties并覆盖 customlingshot.properties 文件中的消息。
希望这可以帮助
注意:这适用于 Alfresco 5.x,它应该适用于 Alfresco 6.0。如果您遇到任何问题,请告诉我。
推荐阅读
- jquery - 根据 flexbox 容器的高度设置字体大小
- database - 无法在 Oracle 11g 上将对象类型插入表中
- php - 将 ajax 发送的 $_POST 替换为另一个 $_POST
- r - R Shiny:转置和显示用户上传的文件
- python - 仅使用开源工具从 Python 中查找和计算 SAS7BDAT 文件中的记录总数
- matlab - Matlab`bar`:控制条组之间的间距
- tfs - 检索 TFS 对话框参数
- c# - 用一个函数制作多个对象
- python-3.x - 如何在 Pybel 中禁用记录的警告?
- math - 仅使用 - + * 操作检查 n 个数字是否都是奇数或偶数