cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Model Properties not working

hgfortis
Champ in-the-making
Champ in-the-making
I've installed the Alfresco Community Edition 5.0.c. I've created a custom type, deployed it to the Data Dictionary/Models folder in Alfresco and activated the model. However, after restarting the server/service, I'm not seeing the additional properties from the model. Also, I'm not seeing the Create Content button/link to add files to the document library.

Am I missing a step? See sample model file below:

<?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:mynewmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">

<!– Optional meta-data about the model –>
<description>Example custom Model</description>
<author></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="my.new.model" prefix="my"/>
</namespaces>

<types>

<!– Definition of new Content Type: Standard Operating Procedure –>
<type name="my:sop">
<title>Standard Operating Procedure</title>
<parent>cm:content</parent>
<properties>
<property name="mySmiley TongueublishedDate">
<type>d:datetime</type>
</property>
<property name="my:authorisedBy">
<type>d:text</type>
</property>
</properties>
<associations>
<association name="my:signOff">
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>cm:content</class>
<mandatory>false</mandatory>
<many>false</many>
</target>
</association>
<child-association name="mySmiley TonguerocessSteps">
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>cm:content</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</child-association>
</associations>
</type>

</types>

<aspects>

<!– Definition of new Content Aspect: Image Classification –>
<aspect name="my:imageClassification">
<title>Image Classfication</title>
<properties>
<property name="my:width">
<type>d:int</type>
</property>
<property name="my:height">
<type>d:int</type>
</property>
<property name="my:resolution">
<type>d:int</type>
</property>
</properties>
</aspect>

</aspects>

</model>
1 REPLY 1

mrogers
Star Contributor
Star Contributor
Yes the step you are missing is that you need a form definition for share or explorer.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.