Problems in the creation of a new model

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2006 08:05 AM
Hi,
I have created the type of content "my: sop" in exampleModel.xml:
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.
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.
Labels:
- Labels:
-
Archive
6 REPLIES 6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2006 03:53 AM
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
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2006 04:42 AM
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?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2006 04:53 AM
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
you need to inherite from CMObject probably.
Look this to have more idea about existing model
http://wiki.alfresco.com/wiki/Domain_Model

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2006 05:34 AM
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.
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.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2006 05:44 AM
Hi,
I have done what you have said to me. But the web client not load.
I not as it is the problem.
thanks
I have done what you have said to me. But the web client not load.
I not as it is the problem.
thanks

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2006 09:17 AM
Thanks for the information.
