cancel
Showing results for 
Search instead for 
Did you mean: 

Error with custom content model

udaya
Champ in-the-making
Champ in-the-making
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
1 REPLY 1

udaya
Champ in-the-making
Champ in-the-making
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?
Getting started

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.