露天共享不显示子类型或自定义类型
我有一个名为“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。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据您使用的 Alfresco 版本,共享中的“更改类型”对话框的配置会有所不同
Alfresco 3.4
您需要覆盖默认配置
Alfresco >= 3.4
您需要将配置放置在(例如)
share-config-custom.xml
无论采用哪种方法,配置都将如下所示:
您可以在下拉列表中指定哪些类型可供选择 (
my:targetType*
),具体取决于您要处理的内容的类型作用于(my:sourceType
)。由于
subtype
元素无法嵌套,因此您必须将所有可能的类型更改指定为同级元素。只要源类型是目标类型的祖先类型,一切都应该按预期工作。继续使用您的示例:如果您还需要在 元素
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:
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:If you also need to show
mb:medicalBill
in the change type dropdown forcd:clientDocument
documents you need to add another<type name="cd:clientDocument>..."
element in the XML