cancel
Showing results for 
Search instead for 
Did you mean: 

First steps. new custom types. I need help

iruizdeeguilaz
Champ in-the-making
Champ in-the-making
I come from Documentum and I am learning how to use Alfresco

The first I have tried is to add a new custom model
I am trying to do it without using eclipse, I think is possible, isn´t it?
I have done two xml –> extension-model-context.xml and exmodel.xml
C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\extension\extension-model-context.xml
C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\extension\model\exmodel.xml

after some errors when I was restarting tomcat (About bad tagging), I could restart it succsfully but I can't see the new typers in the interface when I try to create content… (I only see content as a type)

is there any way to be sure that my new types has been created???? (maybe a select to a specific table in the database)…

am I forgettig something???


<types>
      <type name="ex:document">
         <title>Document</title>
         <parent>cm:content</parent>
      </type>
      <type name="ex:docu">
         <title>docu</title>
         <parent>ex:document</parent>
      </type>
      <type name="ex:name">
         <title>name</title>
         <parent>ex:document</parent>
      </type>
   </types>   





2 REPLIES 2

mrogers
Star Contributor
Star Contributor
Yes - you can add a model without eclipse although a good XML editor will help.

you have put your extension in the wrong place. (should be shared/classes/alfresco/extension.)
And the snippet of the model file you attached is incomplete.

Then you may (or may not depending upon requirements) need to configure share or explorer to use your custom type.

thanks

yes I had those xml in that foltder as well but my problem was that I dind´t have the web-client-config-custom.xml…. that was my fault

I found a lot of information about adding models with eclipse but whithout it I didn´t have a clear one Smiley Sad

thanks for your answer