AnsweredAssumed Answered

Adding custom models as XML

Question asked by ally311 on Jan 15, 2018
Latest reply on Jan 15, 2018 by ally311

I'm trying to add a custom model to my alfresco server using an XML model definition file, however every time I try to activate the model it gives the message "could not update details".


I imagine the issue is something to do with how I've written it, but I've based it on the version found on the Jeff Pots tutorial (Working With Custom Content Types in Alfresco | ECMArchitect | Alfresco Developer Tutorials).

The original version outlined in the tutorial works, but my edited version doesn't and I just can't see why.

Any help will be greatly appreciated.

My code is as follows:


<?xml version="1.0" encoding="UTF-8"?>
<!-- Definition of new Model -->
<model name="tst:document" xmlns="">
      <!-- Optional meta-data about the model -->
      <description>Test Document Model</description>

      <!-- Imports are required to allow references to definitions in other models -->
            <!-- Import Alfresco Dictionary Definitions -->
            <import uri="" prefix="d" />
            <!-- Import Alfresco Content Domain Model Definitions -->
            <import uri="" prefix="cm" />

      <!-- Introduction of new namespaces defined by this model -->
            <namespace uri="" prefix="tst" />

            <!-- Enterprise-wide generic document type -->
            <type name="tst:doc">
            <title>Test Document</title>

            <aspect name="tst:current">
                  <title>Active Document</title>
                        <property name="tst:currentVersion">