You are here

Adding a custom model

Custom content models can be bootstrapped into the repository using a Spring configuration added to the module context file.

Add the following Spring configuration to module-context.xml:

  
    <bean id="myModule_dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
      <property name="models">
        <list>
          <value>alfresco/module/myModuleId/myCustomModel.xml</value>
        </list>
      </property>
    </bean>
    

Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.