AnsweredAssumed Answered

problem to add a new content type

Question asked by asoph on Nov 8, 2006
Latest reply on Nov 9, 2006 by asoph

I've been trying to make a new content type, but I can't make it work!

I just took the example from the wiki to try it.

This is my model. I saved examplemodel1.xml in the repository tomcat/shared/classes/alfresco/extension

<model name="my:mynewmodel" xmlns="">
   <description>Example custom Model</description>

          <import uri="" prefix="d"/>
         <import uri="" prefix="cm"/>

            <namespace uri="" prefix="my"/>

      <type name="my:sop">
         <title>Standard Operating Procedure</title>
            <property name="my:publishedDate">
            <property name="my:authorisedBy">

I changed the web-client-config-custom.xml in the alfresco/extension

<config evaluator="string-compare" condition="Content Wizards">
         <type name="my:sop" />

   <config evaluator="node-type" condition="my:sop">
         <show-property name="mimetype" display-label-id="content_type"
                        component-generator="MimeTypeSelectorGenerator" />
         <show-property name="size" display-label-id="size"
                        show-in-edit-mode="false" />   
         <show-property name="title" show-in-edit-mode="true" />          
         <show-property name="my:publishedDate" show-in-edit-mode="true" />
         <show-association name="my:signOff" />
         <show-property name="my:authorisedBy" show-in-edit-mode="true" />
         <show-child-association name="my:processSteps" />

And I finally changed in the core-services-context.xml in the repository WEB-INF/classes/alfresco

<bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
        <property name="models">

With those changes, I can't see my new content type in Alfresco.
Did I forget to change something? Is something missing? or wrong?

Thank you so much for you help!! I really need to make it work…