AnsweredAssumed Answered

Content model Issue

Question asked by yuva on Oct 26, 2017
Latest reply on Oct 29, 2017 by yuva

I have created a content model with two main types named as my:salesCustomerCare and my:maintainence. After build a project i can able to see only types of my:salesCustomerCare and types of my:maintainence is not coming. But when i check alfresco api - http://localhost:8080/alfresco/s/api/classes?nsp=my its coming in the json, only not displaying in the share page. Can anyone tell me the reason for why its not displaying in the share page?


content-model.xml :

<?xml version="1.0" encoding="UTF-8"?>
<!-- Definition of new Model -->
<!-- The important part here is the name - Note: the use of the my: namespace
which is defined further on in the document -->
<model name="my:contentModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!-- Optional meta-data about the model -->
<description>Requirement Custom Model</description>
<author>Yuvaraj</author>
<version>1.0</version>
<!-- Imports are required to allow references to definitions in other models -->
<imports>
<!-- Import Alfresco Dictionary Definitions -->
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
<!-- Import Alfresco Content Domain Model Definitions -->
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
</imports>
<!-- Introduction of new namespaces defined by this model -->
<!-- NOTE: The following namespace my.new.model should be changed to reflect your own namespace -->
<namespaces>
<namespace uri="http://www.mycompany.com/model/content/1.0" prefix="my"/>
</namespaces>

<types>
<type name="my:salesCustomerCare">
<title>Sales and Customer care</title>
<parent>cm:content</parent>
</type>
<type name="my:contractCopies">
<title>Contract Copies</title>
<parent>my:salesCustomerCare</parent>
<properties>
<property name="my:contractTypeOnCC">
<type>d:text</type>
<mandatory>false</mandatory>
</property>
<property name="my:contractNumberOnCC">
<type>d:text</type>
<mandatory>true</mandatory>
</property>
<property name="my:clientNameOnCC">
<type>d:text</type>
<mandatory>true</mandatory>
</property>
<property name="my:contractStartOnCC">
<type>d:datetime</type>
<mandatory>false</mandatory>
</property>
<property name="my:contractEndOnCC">
<type>d:datetime</type>
<mandatory>false</mandatory>
</property>
</properties>
</type>
<type name="my:wrcTenancyCertificate">
<title>WRC Tenancy Certificate</title>
<parent>my:salesCustomerCare</parent>
<properties>
<property name="my:dateOfApplication">
<type>d:date</type>
<mandatory>false</mandatory>
</property>
<property name="my:referenceNumber">
<type>d:text</type>
<mandatory>false</mandatory>
</property>
<property name="my:leaseIssueDate">
<type>d:date</type>
<mandatory>false</mandatory>
</property>
<property name="my:leaseExpiryDate">
<type>d:date</type>
<mandatory>true</mandatory>
</property>
<property name="my:contractNumberForTenancyCert">
<type>d:text</type>
<mandatory>true</mandatory>
</property>
<property name="my:tenantName">
<type>d:text</type>
<mandatory>true</mandatory>
</property>
<property name="my:tenantCompany">
<type>d:text</type>
<mandatory>true</mandatory>
</property>
</properties>
</type>

<type name="my:maintainence">
<title>Maintainence</title>
<parent>cm:content</parent>
</type>
<type name="my:manualAttendanceCivil">
<title>Manual Attendance Civil</title>
<parent>my:maintainence</parent>
<properties>
<property name="my:dateCivil">
<type>d:date</type>
<mandatory>true</mandatory>
</property>
<property name="my:companyNameCivil">
<type>d:text</type>
<mandatory>true</mandatory>
</property>
</properties>
</type>
<type name="my:manualAttendanceCommercial">
<title>Manual Attendance For Commercial</title>
<parent>my:maintainence</parent>
<properties>
<property name="my:dateCommercial">
<type>d:date</type>
<mandatory>true</mandatory>
</property>
<property name="my:companyNameCommercial">
<type>d:text</type>
<mandatory>true</mandatory>
</property>
</properties>
</type>
<type name="my:workersVillage">
<title>Workers Village</title>
<parent>my:maintainence</parent>
<properties>
<property name="my:dateForWV">
<type>d:date</type>
<mandatory>true</mandatory>
</property>
<property name="my:companyNameForWV">
<type>d:text</type>
<mandatory>true</mandatory>
</property>
</properties>
</type>
<type name="my:rmsFormat">
<title>RMS Format</title>
<parent>my:maintainence</parent>
<properties>
<property name="my:rmsDate">
<type>d:date</type>
<mandatory>true</mandatory>
</property>
<property name="my:zone">
<type>d:text</type>
<mandatory>false</mandatory>
</property>
<property name="my:companyNameForRms">
<type>d:text</type>
<mandatory>true</mandatory>
</property>
</properties>
</type>
<type name="my:maintainenceClearanceReport">
<title>Maintainence Clearance Report</title>
<parent>my:maintainence</parent>
<properties>
<property name="my:companyNameForMCR">
<type>d:text</type>
<mandatory>true</mandatory>
</property>
<property name="my:dateForMCR">
<type>d:date</type>
<mandatory>true</mandatory>
</property>
<property name="my:contractNumberForMCR">
<type>d:text</type>
<mandatory>false</mandatory>
</property>
</properties>
</type>

</types>
</model>

Outcomes