05-07-2011 01:19 AM
<model name="my:mynewmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<description>Example custom Model</description>
<author>Fuad Gafarov</author>
<version>1.0</version>
<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>
<namespaces>
<!– Define a Namespace for my new definitions –>
<namespace uri="my.new.model" prefix="my"/>
</namespaces>
<!– Type and Aspect definitions go here –>
<types>
<type name="my:sop">
<title>Standard Operating Procedure</title>
<parent>cm:content</parent>
<properties>
<property name="my:publishedDate">
<type>d:datetime</type>
</property>
<property name="my:authorisedBy">
<type>d:text</type>
</property>
</properties>
</type>
</types>
<aspects>
<aspect name="my:imageClassification">
<title>Image Classification</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>
<alfresco-config>
<config evaluator="node-type" condition="my:sop">
<property-sheet>
<show-property name="mimetype" display-label-id="content_type"
component-generator="MimeTypeSelectorGenerator" />
<show-property name="size" display-label-id="size"
converter="org.alfresco.faces.ByteSizeConverter"
show-in-edit-mode="false" />
<show-property name="my:publishedDate" />
<show-association name="my:signOff" />
<show-property name="my:authorisedBy" />
<show-child-association name="my:processSteps" />
</property-sheet>
</config>
</alfresco-config>
# web client custom I18N message properties
# example model
# see display-label-ids added to the web-client-config-custom.xml sample
# my:sop
my.publishedDate=07/05/11
my.authorisedBy=Fuad Gafarov
my.signOff=Sign Off
my.processSteps=step
# my:imageClassification
my.width=100
my.height=100
my.resolution=600x800
05-09-2011 03:22 AM
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.