cancel
Showing results for 
Search instead for 
Did you mean: 

how to add custom metadata

biswajit
Champ in-the-making
Champ in-the-making
Hi all,
I have import alfresco source from alfresco svn but now i want to add custom metadata . In WebClient package i found a  web-client-config-custom.xml but its not working . so please tell me from where i found those CustomModel.xml and web-client-config-custom.xml file.Can i write a xml and named it CustomModel.xml or its already is in package. I am running alfresco through eclipse.

Thanks,
11 REPLIES 11

gronfelt
Champ in-the-making
Champ in-the-making
You can find customModel.xml.sample in projects/repository/config/alfresco/extension/.

biswajit
Champ in-the-making
Champ in-the-making
thanks for ur reply.but i cant find web-client-config-custom.xml file.please tell me in which project it is?beacuse i want to add custom metadata programatically.

gronfelt
Champ in-the-making
Champ in-the-making
/projects/web-client/config/alfresco/extension/web-client-config-custom.xml.sample

rafaelscg
Champ on-the-rise
Champ on-the-rise
Read:
http://wiki.alfresco.com/wiki/Data_Dictionary_Guide

You can find more information inside this link.

abhashree
Champ in-the-making
Champ in-the-making
hi
you can create your own custom metadata by adding codes in custommodel.xml and web-client-config.xml….

ruiromanini
Champ in-the-making
Champ in-the-making
Follow a example about custom folder metadata  and custom content metadata

      <type name="ap:atividadepontual">
         <title>Solicitação de Atividade Pontual</title>
         <parent>cm:folder</parent>
         <properties>
            <property name="ap:ID_Processo">
               <title>Processo Digital</title>
               <type>d:text</type>
            </property>
            
            <property name="apSmiley TonguealavraChave">
               <title>Palavra Chave</title>
               <type>d:text</type>
            </property>
            
            <property name="apSmiley Very Happyescricao">
               <title>Descrição</title>
               <type>d:text</type>
            </property>
            <property name="apSmiley Very HappyataEntrega">
               <title>Data de Entrega</title>
               <type>d:text</type>
            </property>
         </properties>
      </type>
      <!– Definition of new Content Type: Planeta–>
      <type name="pSmiley Tonguelaneta">
         <title>Planeta</title>
         <parent>cm:content</parent>
         <properties>
            <property name="p:nome">
               <title>Nome do Planeta</title>
               <type>d:text</type>
            </property>
            
            <property name="p:diametro">
               <title>Diametro</title>
               <type>d:text</type>
            </property>
            
            <property name="p:satelites">
               <title>Satelites</title>
               <type>d:text</type>
            </property>
         </properties>
      </type>

bengrah
Champ on-the-rise
Champ on-the-rise
ok,

but cant you guys simple copy and paste a sample of it?

I´m getting very frustrated by not been able to do such a very basic stuffs.

hastovich, in your alfresco/classes folder, copy web-client-config.xml, and rename it to web-client-config-custom.xml, then paste this newly renamed file into your extensions directory. Open the file in your text editor, and remove all the tags except <alfresco-config> and </alfresco-config>, and there you have a basic web-config-client-custom.xml file for you to add custom metadata with.

The web-config-client-custom.xml.sample is basically just the web-config-client.xml file with a lot of tags commented out, it's there just to provide you with examples of how to configure Alfresco Explorer, but you can get the same thing from web-client-config.xml

ninac15
Champ in-the-making
Champ in-the-making
this is a great post, works for me!

markweatherston
Champ in-the-making
Champ in-the-making
I have been having problems doing this, searched all over the net for this, for was it not for this forum I would have not sorted it out. :mrgreen: