01-06-2011 02:34 PM
<model name="hs:HotelSolution" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>Hotel Solution Content Model</description>
<author>development team</author>
<version>1.0</version>
<imports>
<!– Import Alfresco Dictionary Definitions –>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
<!– Import Alfresco Content Domain Model Definitions –>
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
</imports>
<!– Introduction of new namespaces defined by this model –>
<namespaces>
<namespace uri="http://www.ihgmerlin.com/hotelSolution" prefix="hs"/>
</namespaces>
<types>
<!– Definition of new Content Type: Idea Content –>
<type name="hs:IdeaContent">
<title>Hotel Solution Idea Content</title>
<parent>cm:content</parent>
<properties>
<property name="hs:name">
<type>d:text</type>
</property>
<property name="hs:hotel">
<type>d:text</type>
</property>
<property name="hs:title">
<type>d:text</type>
</property>
</properties>
<associations/>
</type>
<!– Definition of new Content Type: Idea Attachment –>
<type name="hs:IdeaAttachment">
<title>Hotel Solution Idea Attachment</title>
<parent>cm:content</parent>
<properties>
<property name="hs:NameValue">
<type>d:text</type>
</property>
<property name="hs:HotelValue">
<type>d:text</type>
</property>
<property name="hs:TitleValue">
<type>d:text</type>
</property>
[color=#FF0000] <property name="hs:Attachments" multiple="true">
<type>d:content</type>
</property>[/color]
</properties>
<associations/>
</type>
</types>
<aspects/>
</model>[color=#FF0000] <property name="hs:Attachments" multiple="true">
<type>d:content</type>
</property>[/color]
We are able to create the acp file successfully and import it into Alfresco. However, with multiple attachments we only get 1 attachment to upload when checking via the node browser. The snippet from the xml file contained in the acp that we created looks like this to upload 2 pdf files as attachments:[color=#FF0000] <hs:Attachments>
<view:values>
<view:value>contentUrl=Export with Attachments\content0.pdf|mimetype=application/pdf|size=140610|encoding=UTF-8|locale=en_US_</view:value>
<view:value>contentUrl=Export with Attachments\content1.pdf|mimetype=application/pdf|size=140610|encoding=UTF-8|locale=en_US_</view:value>
</view:values>
</hs:Attachments>[/color]02-02-2011 07:13 AM
02-02-2011 09:22 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.