<?xml version="1.0" encoding="UTF-8"?>
<!– Definition of new Model –>
<model name="my:somecomodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>Someco Model</description>
<author>Optaros</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 –>
<namespaces>
<namespace uri="http://www.someco.com/model/content/1.0" prefix="my" />
</namespaces>
<types>
<type name="my:sop">
<title>Fiche</title>
<parent>cm:content</parent>
</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="aspect-name" condition="my:imageClassification">
<property-sheet>
<show-property name="my:width" display-label-id="width"/>
<show-property name="my:height" display-label-id="height"/>
<show-property name="my:resolution" display-label-id="resolution"/>
</property-sheet>
</config>
<config evaluator="node-type" condition="my:sop">
<property-sheet>
<show-property name="name" showInEditMode="false" />
<show-property name="title" showInEditMode="false" />
<show-property name="description" showInEditMode="false" />
</property-sheet>
</config>
<!– add someco types to add content list –>
<config evaluator="string-compare" condition="Content Wizards">
<content-types>
<type name="my:sop" />
</content-types>
</config>
<config evaluator="string-compare" condition="Action Wizards">
<!– The list of aspects to show in the add/remove features action –>
<!– and the has-aspect condition –>
<aspects>
<!–
<aspect name="my:imageClassification"/>
–>
<aspect name="my:imageClassification" display-label="Image Classification" display-label-id="image_classification"/>
</aspects>
<!– The list of types shown in the is-subtype condition –>
<subtypes>
<type name="my:sop" />
</subtypes>
<!– The list of content and/or folder types shown in the specialise-type action –>
<specialise-types>
<type name="my:sop" />
</specialise-types>
</config>
<config evaluator="string-compare" condition="Advanced Search">
<advanced-search>
<content-types>
<type name="my:sop" />
</content-types>
<custom-properties>
<meta-data aspect="my:imageClassification" property="my:width" display-label-id="width" />
<meta-data aspect="my:imageClassification" property="my:height" display-label-id="height" />
<meta-data aspect="my:imageClassification" property="my:resolution" display-label-id= "resolution" />
</custom-properties>
</advanced-search>
</config>
</alfresco-config>
<type name="my:sop">
<title>Fiche</title>
<parent>cm:content</parent>
<mandatory-aspects>
<aspect>my:imageClassification</aspect>
</mandatory-aspects>
</type>
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.