Alfresco 如何在自定义内容模型中创建文件上载控件
我用一些文本框和下拉控件创建自定义模型。但我想创建文件上传控制。在露天4.2.f我怎么做 有人能帮我吗?如何在自定义内容模型中创建文件上载?? 我创建了自定义模型:下面是我的customModel.xml文件Alfresco 如何在自定义内容模型中创建文件上载控件,alfresco,alfresco-share,Alfresco,Alfresco Share,我用一些文本框和下拉控件创建自定义模型。但我想创建文件上传控制。在露天4.2.f我怎么做 有人能帮我吗?如何在自定义内容模型中创建文件上载?? 我创建了自定义模型:下面是我的customModel.xml文件 <?xml version="1.0" encoding="UTF-8"?> 自定义模型 管理 1 副处长1 副处长2 账单类型1 账单类型2 我的职位 cm:内容 部门 d:mltext 错误的 错误的 错误的 错误的 主题 d:mltext 票据类型 d:mlte
<?xml version="1.0" encoding="UTF-8"?>
自定义模型
管理
1
副处长1
副处长2
账单类型1
账单类型2
我的职位
cm:内容
部门
d:mltext
错误的
错误的
错误的
错误的
主题
d:mltext
票据类型
d:mltext
错误的
错误的
错误的
错误的
票据名称
d:mltext
账单号
d:mltext
文件夹
错误的
符合事实的
cm:内容
错误的
符合事实的
房东
cm:内容
房号
d:mltext
门名
d:mltext
在这个文件中,我创建了文本框和下拉控件,我还希望上传文件(比如在AlfrescoExplorer中添加内容)。我不知道如何才能做到这一点。更准确一点:你到底想实现什么?谢谢你的回复。我编辑我的问题你想要一个按钮来创建一个自定义文档吗?是的(就像我们在“添加内容浏览”按钮中所做的那样)当我单击该按钮时,我可以成功上载文档我从未尝试过-我想你首先要使用文档模板hth
<!-- Optional meta-data about the model -->
<description>Custom Model</description>
<author>Admin</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" />
<import uri="http://www.alfresco.org/model/system/1.0" prefix="sys" />
</imports>
<namespaces>
<namespace uri="http://www.healthindia.org/model/content/1.0" prefix="my" />
</namespaces>
<constraints>
<constraint name="my:departmentcategory" type="LIST">
<parameter name="allowedValues">
<list>
<value>Dep 1</value>
<value>Dep 2</value>
</list>
</parameter>
</constraint>
<constraint name="my:billcategory" type="LIST">
<parameter name="allowedValues">
<list>
<value>BillType1</value>
<value>BillType2</value>
</list>
</parameter>
</constraint>
</constraints>
<types>
<!-- Definition of new Content Type: Press Release -->
<type name="my:content">
<title>My Post</title>
<parent>cm:content</parent>
<properties>
<property name="my:department">
<title>Department</title>
<type>d:mltext</type>
<multiple>false</multiple>
<index enabled="false">
<atomic>false</atomic>
<stored>false</stored>
<tokenised>false</tokenised>
</index>
<constraints>
<constraint ref="my:departmentcategory" />
</constraints>
</property>
<property name="my:subject">
<title>Subject</title>
<type>d:mltext</type>
</property>
<property name="my:billtype">
<title>Bill Type</title>
<type>d:mltext</type>
<multiple>false</multiple>
<index enabled="false">
<atomic>false</atomic>
<stored>false</stored>
<tokenised>false</tokenised>
</index>
<constraints>
<constraint ref="my:billcategory" />
</constraints>
</property>
<property name="my:billtitle">
<title>Bill Title</title>
<type>d:mltext</type>
</property>
<property name="my:billno">
<title>Bill No</title>
<type>d:mltext</type>
</property>
<!-- <property name="my:category"> <title>Category</title> <type>d:mltext</type>
</property> -->
</properties>
<associations>
<association name="my:files">
<title>Files</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>cm:content</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
</associations>
</type>
<!-- Definition of new Content Type: Press Release -->
<type name="my:housecontent">
<title>House Master</title>
<parent>cm:content</parent>
<properties>
<property name="my:houseid">
<title>House Id</title>
<type>d:mltext</type>
</property>
<property name="my:housename">
<title>House Name</title>
<type>d:mltext</type>
</property>
<!-- <property name="my:category"> <title>Category</title> <type>d:mltext</type>
</property> -->
</properties>
</type>
</types>