cancel
Showing results for 
Search instead for 
Did you mean: 

custom XML file

astor
Champ in-the-making
Champ in-the-making
Hi to all

Got a question: how to create custom xml file(in menu->create file->…) with my own fields? I have already done this:
http://wiki.alfresco.com/wiki/Alfresco_on_Eclipse

Sorry for this stupid question, but I'm new in Alfresco.
1 REPLY 1

sylvain78
Champ in-the-making
Champ in-the-making
I understand that you are trying to create a custom model?

If so, this wiki page is very useful for everything about models:
http://wiki.alfresco.com/wiki/Data_Dictionary_Guide

Also, you could start with these file samples from the source code:
http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/repository/config/alf...
http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/repository/config/alf...

Just rename them in ".xml" and copy them in this Alfresco server folder (if they don't exist already!): tomcat/shared/classes/alfresco/extension

Once you have a model, you need to remember that you need to configure either Alfresco Explorer or Alfresco Share to show your new types, properties or aspects.

Another useful resource is Jeff's blog and especially in this case:
http://ecmarchitect.com/archives/2007/06/09/756