<?xml version="1.0" encoding="UTF-8"?>
<model name="custom:customModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<description>Custom Model</description>
<author>Me</author>
<version>1.0</version>
<imports>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"></import>
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"></import>
</imports>
<namespaces>
<namespace uri="custom.model" prefix="custom"></namespace>
</namespaces>
<types>
<type name="custom:doc">
<title>My Document</title>
<parent>cm:content</parent>
<associations>
<association name="custom:relatedDocuments">
<title>Documents associes</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>custom:doc</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
</associations>
<mandatory-aspects>
<aspect>cm:versionable</aspect>
</mandatory-aspects>
</type>
</types>
<aspects>
<aspect name="custom:productRelated">
<title>Donnees produit</title>
<properties>
<property name="custom:product">
<type>d:text</type>
<mandatory>true</mandatory>
</property>
<property name="custom:version">
<type>d:text</type>
<mandatory>true</mandatory>
</property>
</properties>
</aspect>
</aspects>
</model>
<alfresco-config>
<!– Example of adding languages to the list in the login page –>
<config evaluator="string-compare" condition="Languages">
<languages>
<language locale="ca_ES">Catalan</language>
<language locale="hr_HR">Croatian</language>
<language locale="cs_CZ">Czech</language>
<language locale="da_DK">Danish</language>
<language locale="de_DE">German</language>
<language locale="es_ES">Spanish</language>
<language locale="el_GR">Greek</language>
<language locale="fi_FI">Finnish</language>
<language locale="fr_FR">French</language>
<language locale="it_IT">Italian</language>
<language locale="ja_JP">Japanese</language>
<language locale="du_NL">Dutch</language>
<language locale="pl_PL">Polish</language>
<language locale="pt_PT">Portuguese</language>
<language locale="pt_BR">Portuguese (Brazilian)</language>
<language locale="ru_RU">Russian</language>
<language locale="sv_SV">Swedish</language>
<language locale="tr_TR">Turkish</language>
<language locale="zh_CN">Simplified Chinese</language>
</languages>
</config>
<config evaluator="aspect-name" condition="custom:productRelated">
<property-sheet>
<show-property name="custom:product" display-label-id="produit" />
<show-property name="custom:version" display-label-id="version" />
<show-association name="custom:relatedDocuments" />
</property-sheet>
</config>
<config evaluator="node-type" condition="custom:productRelated">
<property-sheet>
<show-property name="custom:product" display-label-id="produit" />
<show-property name="custom:version" display-label-id="version" />
<show-association name="custom:relatedDocuments" />
</property-sheet>
</config>
</alfresco-config>
custom-model-context.xml.sample
en custom-model-context.xml
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!– Registration of new models –>
<bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/extension/customModel.xml</value>
</list>
</property>
</bean>
</beans>
<?xml version="1.0" encoding="UTF-8"?>
<model name="myns:myModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<description>Custom Model</description>
<author>Me</author>
<version>1.0</version>
<imports>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"></import>
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"></import>
</imports>
<namespaces>
<namespace uri="http://www.myns.com/model/content/1.0" prefix="myns"></namespace>
</namespaces>
<types>
<type name="myns:doc">
<title>My Document</title>
<parent>cm:content</parent>
<associations>
<association name="myns:relatedDocuments">
<title>Documents associes</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>myns:doc</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
</associations>
<mandatory-aspects>
<aspect>cm:versionable</aspect>
</mandatory-aspects>
</type>
</types>
<aspects>
<aspect name="myns:productRelated">
<title>Donnees produit</title>
<properties>
<property name="myns:product">
<type>d:text</type>
<mandatory>true</mandatory>
</property>
<property name="myns:client">
<type>d:text</type>
<mandatory>true</mandatory>
</property>
</properties>
</aspect>
</aspects>
</model>
<alfresco-config>
<config evaluator="string-compare" condition="Languages">
<languages>
<language locale="ca_ES">Catalan</language>
<language locale="hr_HR">Croatian</language>
<language locale="cs_CZ">Czech</language>
<language locale="da_DK">Danish</language>
<language locale="de_DE">German</language>
<language locale="es_ES">Spanish</language>
<language locale="el_GR">Greek</language>
<language locale="fi_FI">Finnish</language>
<language locale="fr_FR">French</language>
<language locale="it_IT">Italian</language>
<language locale="ja_JP">Japanese</language>
<language locale="du_NL">Dutch</language>
<language locale="pl_PL">Polish</language>
<language locale="pt_PT">Portuguese</language>
<language locale="pt_BR">Portuguese (Brazilian)</language>
<language locale="ru_RU">Russian</language>
<language locale="sv_SV">Swedish</language>
<language locale="tr_TR">Turkish</language>
<language locale="zh_CN">Simplified Chinese</language>
</languages>
</config>
<config evaluator="aspect-name" condition="myns:productRelated">
<property-sheet>
<show-property name="myns:product" display-label-id="produit" />
<show-property name="myns:client" display-label-id="client" />
<show-association name="myns:relatedDocuments" />
</property-sheet>
</config>
<config evaluator="node-type" condition="myns:productRelated">
<property-sheet>
<show-property name="myns:product" display-label-id="produit" />
<show-property name="myns:client" display-label-id="client" />
<show-association name="myns:relatedDocuments" />
</property-sheet>
</config>
<config evaluator="string-compare" condition="Content Wizards">
<content-types>
<type name="myns:doc" />
</content-types>
</config>
<config evaluator="string-compare" condition="Action Wizards">
<aspects>
<aspect name="myns:productRelated" display-label="myns Classification" display-label-id="myns_classification"/>
</aspects>
<subtypes>
<type name="myns:doc" />
</subtypes>
<specialise-types>
<type name="myns:doc" />
</specialise-types>
</config>
<config evaluator="string-compare" condition="Advanced Search">
<advanced-search>
<content-types>
<type name="myns:doc" />
</content-types>
<custom-properties>
<meta-data aspect="myns:productRelated" property="myns:product" display-label-id="product" />
<meta-data aspect="myns:productRelated" property="myns:client" display-label-id="client" />
</custom-properties>
</advanced-search>
</config>
</alfresco-config>
<config evaluator="node-type" condition="myns:productRelated">
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.