As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<?xml version="1.0" encoding="UTF-8"?> <model name="dynamic:dynamicModel" xmlns="http://www.alfresco.org/model/dictionary/1.0"> <description>Dynamic Model</description> <author></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> <namespaces> <namespace uri="dynamic.model" prefix="dynamic"/> </namespaces> <constraints> <constraint name="dynamic:state_constraint" type="LIST"> <parameter name="allowedValues"> <list> <value>Новый</value> <value>В процессе</value> <value>Отправлен</value> </list> </parameter> </constraint> </constraints> <types> <!– Definition of new Content Type: Model1 –> <type name="dynamic:Model1"> <title>Реестр документов</title> <parent>cm:content</parent> <properties> <property name="dynamic:property11"> <title>Статус</title> <type>d:text</type> <default>Новый</default> <constraints> <constraint ref="dynamic:state_constraint" /> </constraints> </property> <property name="dynamic:property12"> <title>Свойство 12</title> <type>d:text</type> </property> <property name="dynamic:property13"> <title>Свойство 13</title> <type>d:boolean</type> </property> <property name="dynamic:property14"> <title>Свойство 14</title> <type>d:boolean</type> </property> </properties> <associations> <association name="dynamic:PRImage"> <title>Press Release Image</title> <source> <mandatory>false</mandatory> <many>true</many> </source> <target> <class>cm:content</class> <mandatory>false</mandatory> <many>false</many> </target> </association> <association name="dynamic:PRFiles"> <title>Press Release 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> </types> </model>
<alfresco-config> <config evaluator="string-compare" condition="Content Wizards"> <content-types> <type name="dynamic:Model1" /> </content-types> </config> <config evaluator="node-type" condition="dynamic:Model1"> <property-sheet> <show-property name="mimetype" display-label-id="content_type" component-generator="MimeTypeSelectorGenerator" /> <show-property name="size" display-label-id="size" converter="org.alfresco.faces.ByteSizeConverter" show-in-edit-mode="false" /> <show-property name="dynamic:status" /> <show-property name="dynamic:property12" /> <show-property name="dynamic:property13" /> <show-property name="dynamic:property14" /> <show-association name="dynamic:PRImage" /> <show-association name="dynamic:PRFiles" /> </property-sheet> </config> <config evaluator="string-compare" condition="Action Wizards"> <subtypes> <type name="dynamic:Model1"/> </subtypes> </config> </alfresco-config>