As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<?xml version="1.0" encoding="UTF-8"?> <!– Definition of new Model –> <model name="sos:SOSmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0"> <!– Optional meta-data about the model –> <description>Modele de documents SOS</description> <author>P. HADOT</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="SOS.new.model" prefix="sos"/> </namespaces> <types> <!– Definition of new Content Type: Documents SOS Type 1 –> <type name="sos:type1"> <title>Document Type 1</title> <parent>cm:content</parent> <properties> <property name="sos:code1"> <type>d:text</type> <mandatory>true</mandatory> </property> <property name="sos:index1"> <type>d:text</type> <mandatory>true</mandatory> </property> </properties> </type> <!– Definition du type 2–> <type name="sos:type2"> <title>Document Type 2</title> <parent>cm:content</parent> <properties> <property name="sos:code2"> <type>d:text</type> <mandatory>true</mandatory> </property> <property name="sos:index2"> <type>d:text</type> <mandatory>true</mandatory> </property> </properties> </type> </types> </model>
<?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/sosmodel.xml</value> </list> </property> </bean> </beans>
<alfresco-config> <!– En français dans le texte–> <config evaluator="string-compare" condition="Languages"> <languages> <language locale="fr_FR">Française (France)</language> </languages> </config> <!– Configuration de l interface entree doc –> <config evaluator="string-compare" condition="Content Wizards"> <content-types> <type name="sos:type1" /> <type name="sos:type2"/> </content-types> </config> <!– On rend visible les propriétés –> <config evaluator="node-type" condition="sos:type1"> <property-sheet> <show-property name="sos:code1" /> <show-property name="sos:index1" /> </property-sheet> </config> <config evaluator="node-type" condition="sos:type2"> <property-sheet> <show-property name="sos:code2" /> <show-property name="sos:index2" /> </property-sheet> </config> <!– Configuration de la recherche avancee –> <config evaluator="string-compare" condition="Advanced Search"> <advanced-search> <content-types> <type name="sos:type1"/> <type name="sos:type2"/> </content-types> <custom-properties> <meta-data type="sos:type1" property="sos:code1"/> <meta-data type="sos:type1" property="sos:index1"/> <meta-data type="sos:type2" property="sos:code2"/> <meta-data type="sos:type2" property="sos:index2"/> </custom-properties> </advanced-search> </config> <!– Rends actif les type dans le wizard "specialise le type –> <config evaluator="string-compare" condition="Action Wizards"> <specialise-types> <type name="sos:type1"/> <type name="sos:type2"/> </specialise-types> </config> </alfresco-config>