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.
<model name="your:yournewmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0"> <description>Your example custom Model</description> <author>Me</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> <!– Define a Namespace for my new definitions –> <namespace uri="your.new.model" prefix="your"/> </namespaces> <!– Type and Aspect definitions go here –> <types> <!– type contact –> <type name="your:yourSpace"> <title>your Space</title> <parent>cm:folder</parent> </type> </types> </model>
<model name="my:mynewmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0"> <description>My example custom Model</description> <author>Me</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> <!– Define a Namespace for my new definitions –> <namespace uri="my.new.model" prefix="my"/> <namespace uri="your.new.model" prefix="your"/> </namespaces> <!– Type and Aspect definitions go here –> <types> <!– type contact –> <type name="my:mySpace"> <title>My Space</title> <parent>cm:folder</parent> <associations> <association name="my:yourSpace"> <source> <mandatory>false</mandatory> <many>false</many> </source> <target> <class>your:yourSpace</class> <mandatory>false</mandatory> <many>true</many> </target> </association> </associations> </type> </types> </model>
<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'> <beans> <bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap"> <property name="models"> <list> <value>alfresco/extension/yournewModel.xml</value> <value>alfresco/extension/mynewModel.xml</value> </list> </property> </bean> </beans>