Alfresco Share未显示子类型或自定义类型 [英] Alfresco Share not showing subtype or custom type

查看:95
本文介绍了Alfresco Share未显示子类型或自定义类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个名为 medicalBill的自定义模型,该模型继承自另一个名为 clientDocument的自定义模型。由于共享UI中的某些原因,在更改类型对话框中仅可见 clientDocument。我已经读过,在更改类型对话框中,它仅显示属于cm:content子类型的模型。

I have a custom model called "medicalBill" that inherits from another custom model called "clientDocument". For some reason in the share UI only the "clientDocument" is visible in the change type dialog. I have read that in the change type dialog it only shows models that are subtypes of cm:content. Does that mean ONLY direct subtypes?

我在我的share-config-custom.xml文件中有此子类吗?

I have this in my share-config-custom.xml is it not possible to have a subtype of a subtype here.

      <types>
         <type name="cm:content">
                <subtype name="cd:clientDocument">
                    <subtype name="mb:medicalBill"/>
                </subtype>

         </type>

         <type name="cm:folder">
         </type>
      </types>

编辑:我在Linux下的jboss上运行alfresco 3.4d。

I am running alfresco 3.4d on jboss under linux.

推荐答案

根据您使用的Alfresco版本,共享中的更改类型对话框的配置有所不同

Depending on which version of Alfresco you're using, the Change Type dialog in Share is configured differently

露天< 3.4

需要覆盖默认配置

Alfresco> = 3.4

您需要将配置放在(例如) share-config-custom.xml

You need to place the configuration in (e.g.) share-config-custom.xml

无论采用哪种方法,配置都会看起来类似于以下内容:

Regardless of the approach, the configuration will look like the following:

<type name="my:sourceType">
      <subtype name="my:targetType1"/>
      <subtype name="my:targetType2"/>
      ...
</type>

在下拉列表中指定可以选择的类型( my :targetType * ),具体取决于您所处理内容的类型( my:sourceType )。

Where you specify which types are available for selection in the drop down (my:targetType*) depending on the type of the content you're acting on (my:sourceType).

由于子类型元素不能嵌套,因此必须将所有可能的类型更改指定为兄弟元素。只要源类型是目标类型的祖先类型,一切都应按预期工作。坚持以下示例:

As subtype elements cannot be nested, you have to specify all the possible type changes as sibling elements. As long as the source type is an ancestor type of the target type, everything should work as expected. To stick with your example:

  <types>
     <type name="cm:content">
            <subtype name="cd:clientDocument" />
            <subtype name="mb:medicalBill" />
     </type>

     <type name="cm:folder">
     </type>
  </types>

如果您还需要显示 mb:medicalBill cd:clientDocument 文档的更改类型下拉列表中,您需要添加另一个< type name = cd:clientDocument> ...... XML中的元素

If you also need to show mb:medicalBill in the change type dropdown for cd:clientDocument documents you need to add another <type name="cd:clientDocument>..." element in the XML

这篇关于Alfresco Share未显示子类型或自定义类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆