露天共享不显示子类型或自定义类型

发布于 2024-11-25 10:14:36 字数 604 浏览 9 评论 0 原文

我有一个名为“medicalBill”的自定义模型,它继承自另一个名为“clientDocument”的自定义模型。由于某种原因,在共享 UI 中,只有“clientDocument”在更改类型对话框中可见。我已读到,在更改类型对话框中,它仅显示 cm:content 子类型的模型。这是否意味着只有直接亚型?

我的 share-config-custom.xml 中有这个,这里不可能有子类型的子类型吗?

      <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 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?

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>

Edit: I am running alfresco 3.4d on jboss under linux.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

烏雲後面有陽光 2024-12-02 10:14:36

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

Alfresco 3.4

需要覆盖默认配置

Alfresco >= 3.4

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

无论采用哪种方法,配置都将如下所示:

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

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

由于 subtype 元素无法嵌套,因此您必须将所有可能的类型更改指定为同级元素。只要源类型是目标类型的祖先类型,一切都应该按预期工作。继续使用您的示例:

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

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

如果您还需要在 cd:clientDocument 文档的更改类型下拉列表中显示 mb:medicalBill,则需要添加另一个 元素

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

Alfresco < 3.4

You need to override the default configuration

Alfresco >= 3.4

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>

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>

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文