05-03-2007 11:52 AM
05-14-2007 02:51 AM
05-14-2007 12:13 PM
<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>
09-17-2007 06:20 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.