cancel
Showing results for 
Search instead for 
Did you mean: 

Problems in the creation of a new model

rcortesr
Star Contributor
Star Contributor
Hi,
I have created the type of content "my: sop" in exampleModel.xml:
 
.
.
<type name="my:sop">
<title>Standard Operating Procedure</title>
<parent>cm:content</parent>
<properties>
<property name="my:NIF_Proveedor">
<type>d:text</type>
<mandatory>true</mandatory>
</property>
<property name="my:Fecha_Factura">
<type>d:date</type>
<mandatory>true</mandatory>>
</property>
<property name="my:Numero_Factura">
<type>d:text</type>
<mandatory>true</mandatory>>
</property>
.
.

When I create a content of the type my: sop appears to me properties that I have not defined in my: sop.
they are the following ones:
-name
-title
-description
-author
-edit inline
-content type

How I can eliminate these properties?

Thanks.
6 REPLIES 6

ribz33
Champ on-the-rise
Champ on-the-rise
Hi,

You need to NOT inherited your model to "content" model.
Because these properties (name, title, description, author, edit inline, content type) are from content model.

bst regards

rcortesr
Star Contributor
Star Contributor
Hi,

You need to NOT inherited your model to "content" model.
Because these properties (name, title, description, author, edit inline, content type) are from content model.

bst regards

If I don't inherit exampleModel of contentModel an error takes place and the web client is not loaded.
My exampleModel.xml is in /tomcat/shared/slasses/alfresco/extension, this is the problem?

ribz33
Champ on-the-rise
Champ on-the-rise
I dont think that is the problem…
you need to inherite from CMObject probably.
Look this to have more idea about existing model
http://wiki.alfresco.com/wiki/Domain_Model

gavinc
Champ in-the-making
Champ in-the-making
Hi,

ribz33 is correct, these properties are displayed because you have inherited from cm:content, which is the correct thing to do if your type is a form of content.

The properties show because they are configured to do so in web-client-config-properties.xml. The properties you mention are all introduced via aspects, so each config section that has an aspect-name evaluator that matches will be applied.

One way to hide these properties is to do so in the configuration for your type. Add the "show-in-view-mode=false" and "show-in-edit-mode=false" attributes to your show-property declaration. See http://wiki.alfresco.com/wiki/Displaying_Custom_Metadata for details.

rcortesr
Star Contributor
Star Contributor
Hi,
I have done what you have said to me. But the web client not load.
I not as it is the problem.
thanks

rcortesr
Star Contributor
Star Contributor
Thanks for the information.