Error with custom content model

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2011 07:34 AM
hi,
i am having similar requirement. i am using Alfresco community version 4.0
Below are my Files:
bpa-model-context.xml
<bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/extension/bpaModel.xml</value>
<value>alfresco/extension/model/userContentModel.xml</value>
</list>
</property>
</bean>
bpaModel.xml
<namespaces>
<namespace uri="bpa.model" prefix="bpa"/>
</namespaces>
<aspects>
<aspect name="bpa:UserDetails">
<title>User Details</title>
<properties>
<property name="bpa:Name">
<title>Name</title>
<type>d:text</type>
<protected>false</protected>
<mandatory>false</mandatory>
</property>
</properties>
</aspect>
</aspects>
userContentModel.xml
…..
</associations>
<mandatory-aspects>
<aspect>bpa:UserDetails</aspect>
</mandatory-aspects>
</type>
i am getting error with this code:
can anyone help me what i am missing out!!!!!!!
Thanks
Udaya.R
i am having similar requirement. i am using Alfresco community version 4.0
Below are my Files:
bpa-model-context.xml
<bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/extension/bpaModel.xml</value>
<value>alfresco/extension/model/userContentModel.xml</value>
</list>
</property>
</bean>
bpaModel.xml
<namespaces>
<namespace uri="bpa.model" prefix="bpa"/>
</namespaces>
<aspects>
<aspect name="bpa:UserDetails">
<title>User Details</title>
<properties>
<property name="bpa:Name">
<title>Name</title>
<type>d:text</type>
<protected>false</protected>
<mandatory>false</mandatory>
</property>
</properties>
</aspect>
</aspects>
userContentModel.xml
…..
</associations>
<mandatory-aspects>
<aspect>bpa:UserDetails</aspect>
</mandatory-aspects>
</type>
i am getting error with this code:
can anyone help me what i am missing out!!!!!!!
Thanks
Udaya.R
Labels:
- Labels:
-
Archive
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2011 10:47 PM
hi,
i would like to add a custom field to the user model. While creating users, the admin who creating users must fill in the custom field.
in my above post i have created an aspect(bpaModel.xml) of adding Name field(not exctly i am gng to add this), and made this aspect mandatory in my userContentModel.xml
in the bpa-model-context.xml, i called both the models.
any steps i am missing out in this?
i would like to add a custom field to the user model. While creating users, the admin who creating users must fill in the custom field.
in my above post i have created an aspect(bpaModel.xml) of adding Name field(not exctly i am gng to add this), and made this aspect mandatory in my userContentModel.xml
in the bpa-model-context.xml, i called both the models.
any steps i am missing out in this?
