如何在Alfresco中自定义创建网站表单

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

我是露天的新手。我正在使用Alfresco 6.0,我试图在创建网站表单的可见性部分更改Private的描述。我该如何实现?

enter image description here

alfresco
2个回答
1
投票

干净的方法是重写webscripts-resources bean,以添加您自己的属性包。您可以通过编辑源项目中的共享应用程序上下文文件来实现。在我的示例中,它位于alfresco-share-example-share / src / main / resources / alfresco / web-extension / alfresco-share-example-share-slingshot-application-context.xml中。

添加以下bean:

   <!-- Override WebScript Messages - add slingshot application messages -->
   <bean id="webscripts.resources" class="org.springframework.extensions.surf.util.ResourceBundleBootstrapComponent">
      <property name="resourceBundles">
         <list>
            <value>webscripts.messages.webscripts</value>
            <value>alfresco.messages.common</value>
            <value>alfresco.messages.cmm</value>
            <value>alfresco.messages.slingshot</value>
            <value>alfresco.messages.smartfolder</value>
            <value>alfresco.web-extension.messages.slingshot</value>
         </list>
      </property>
   </bean>

然后将您自己的属性包放入项目中,并设置要覆盖的道具。在我的示例中,属性文件进入:

  • alfresco-share-example-share / src / main / resources / alfresco / web-extension / messages / slingshot_en.properties
  • alfresco-share-example-share / src / main / resources / alfresco / web-extension / messages / slingshot.properties

我现在尝试使用SDK 4.0.0和6.1.0,但无法正常工作。您可以尝试一下,看看它是否适合您。


1
投票

您可以通过覆盖键来完成

site.visibility.description.PRIVATE

在文件slingshot.propertiesslingshot_XX.properties中,其中XX是您的语言。

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