如何在Alfresco中将一个内容与另一个内容相关联? [英] How do I associate one piece of content with another in Alfresco?

查看:70
本文介绍了如何在Alfresco中将一个内容与另一个内容相关联?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个文件夹,一个充满图像,另一个充满文本文件。

I have two folders, one full of images and another full of text files.

我如何在文本文件中添加一个属性,允许用户选择图像文件夹中的项目? (我知道如何使用方面来添加数字和日期之类的基本属性。)

How do I add a property to the text file that allows the user to pick an item from the image folder? (I know how to add basic properties like numbers and dates using aspects.)

我已经尝试过这些,但是共享将它们呈现为只读框。

I already tried these, but Share renders them as read-only boxes.

            <property name="my:propQName">
                <title>QName Property</title>
                <type>d:qname</type>
            </property>

            <property name="my:propNodeRef">
                <title>Node Reference Property </title>
                <type>d:noderef</type>
            </property>

            <property name="my:propPath">
                <title>Path Property </title>
                <type>d:path</type>
            </property>


推荐答案

您需要创建关联

      <associations>
        <association name="my:relatedImage">
           <source>
              <mandatory>true</mandatory>
              <many>false</many>
           </source>
           <target>
              <class>my:imageType</class>
              <mandatory>true</mandatory>
              <many>false</many>
           </target>
        </association>
     </associations>

默认情况下,它将作为选择器呈现。您始终可以像往常一样在 share-中配置选择器。 config-custom.xml

This will render by default as a picker. You can always configure the picker as usual in share-config-custom.xml.

编辑:关于关联的官方文档

这篇关于如何在Alfresco中将一个内容与另一个内容相关联?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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