Hey guys,My project leader told me to use 2.9B as version. Problem with this version is of course the location and config for adding custom models and aspects. I took a look at the wiki links for defining the data dictionary and such and I think I'm missing something.placed my custom model in the dir: C:\alfresco\tomcat\shared\classes\alfresco\extension\rlsCVModel.xmland defined it in the file: C:\alfresco\tomcat\shared\classes\alfresco\extension\custom-model-context.xmlI restarted the alfresco server, got no exceptions but I cannot seem to find the model in the UI, nor the custom aspect. But if I change the path to my custom model in the custom context xml file to a non existant value I do get an exception. So obviously the path the the config is ok.So if anyone can direct me to the correct config files I'd really appreciate it.I did however encounter less problems with this version than with 2.1. Just basing a user home on a previously defined user home gave me a serious exception. I have not had a runtime exception so far with 2.9B.my used code:
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!– Registration of new models –>
<bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/extension/rlsCVModel.xml</value>
</list>
</property>
</bean>
<bean id="rlsCVModels" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/extension/rlsCVModel.xml</value>
</list>
</property>
</bean>
</beans>
<?xml version="1.0" encoding="UTF-8"?>
<!– Definition of new Model –>
<!– The important part here is the name - Note: the use of the my: namespace
which is defined further on in the document –>
<model name="rls:cvmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>Example custom Model</description>
<author></author>
<version>1.0</version>
<!– Imports are required to allow references to definitions in other models –>
<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 –>
<!– NOTE: The following namespace my.new.model should be changed to reflect your own namespace –>
<namespaces>
<namespace uri="realsoftware.be" prefix="rls"/>
</namespaces>
<types>
<!– Definition of new Content Type: Real CV –>
<type name="rls:cv">
<title>Real CV</title>
<parent>cm:content</parent>
<properties>
<property name="rls:name">
<type>d:text</type>
</property>
</properties>
<mandatory-aspects>
<aspect>cm:versionable</aspect>
<aspect>rls:locatable</aspect>
</mandatory-aspects>
</type>
</types>
<aspects>
<!– Definition of new Content Aspect: Locatable –>
<aspect name="rls:locatable">
<title>Locatable</title>
<properties>
<property name="rls:address">
<type>d:text</type>
</property>
<property name="rls:city">
<type>d:text</type>
</property>
<property name="rls:postalCode">
<type>d:text</type>
</property>
<property name="rls:country">
<type>d:text</type>
</property>
</properties>
</aspect>
</aspects>
</model>