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.
<model name="my:alunos" xmlns="http://www.alfresco.org/model/dictionary/1.0"> <description>Alunos</description> <author>Mmartins</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.alunos" prefix="my"/> </namespaces> <!– Type and Aspect definitions go here –> <types> <type name="my:alunos"> <title>Alunos</title> <parent>cm:content</parent> <properties> <property name="my:Nome"> <title>Nome</title> <type>d:text</type> </property> <property name="my:DocumentodeID"> <title>Documento de ID</title> <type>d:text</type> </property> <property name="my:NumdocdeID"> <title>Numero de documento de ID</title> <type>d:text</type> </property> <property name="my:datanascimento"> <title>Data de nascimento</title> <type>d:datetime</type> </property> <property name="my:morada"> <title>Morada</title> <type>d:text</type> </property> <property name="my:email"> <title>Email</title> <type>d:text</type> </property> <property name="my:telefone"> <title>Telefone</title> <type>d:number</type> </property> <property name="my:curso"> <title>Curso</title> <type>d:text</type> </property> <property name="my:Escola"> <title>Escola/Instituição</title> <type>d:text</type> </property> <property name="my:Bolseiro"> <title>Bolseiro</title> <type>d:boolean</type> <default>false</default> </property> <property name="my:datadebolseiro"> <title>Data de Bolseiro( Bolseiro desde)</title> <type>d:datetime</type> </property> <property name="my:nib"> <title>Nib</title> <type>d:text</type> </property> <property name="my:numconta"> <title>Numero de conta</title> <type>d:text</type> </property> <property name="my:numbanco"> <title>numero do banco</title> <type>d:text</type> </property> </properties> </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>
Error Please correct the errors below then click OK. * A system error happened during the operation: 00180002 Failed to parse model
Please correct the errors below then click OK. * A system error happened during the operation: 00180003 Failed to parse model
<model name="my:alunos" xmlns="http://www.alfresco.org/model/dictionary/1.0"> <description>Alunos</description> <author>Mmartins</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.alunos" prefix="my"/> </namespaces> <!– Type and Aspect definitions go here –> <types> <type name="my:osalunos"> <title>Os Alunos</title> <parent>cm:content</parent> <properties> <property name="my:Nome"> <title>Nome</title> <type>d:text</type> </property> <property name="my:DocumentodeID"> <title>Documento de ID</title> <type>d:text</type> </property> <property name="my:NumdocdeID"> <title>Numero de documento de ID</title> <type>d:text</type> </property> <property name="my:datanascimento"> <title>Data de nascimento</title> <type>d:datetime</type> </property> <property name="my:morada"> <title>Morada</title> <type>d:text</type> </property> <property name="my:email"> <title>Email</title> <type>d:text</type> </property> <property name="my:telefone"> <title>Telefone</title> <type>d:number</type> </property> <property name="my:curso"> <title>Curso</title> <type>d:text</type> </property> <property name="my:Escola"> <title>Escola/Instituição</title> <type>d:text</type> </property> <property name="my:Bolseiro"> <title>Bolseiro</title> <type>d:boolean</type> <default>false</default> </property> <property name="my:datadebolseiro"> <title>Data de Bolseiro( Bolseiro desde)</title> <type>d:datetime</type> </property> <property name="my:nib"> <title>Nib</title> <type>d:text</type> </property> <property name="my:numconta"> <title>Numero de conta</title> <type>d:text</type> </property> <property name="my:numbanco"> <title>numero do banco</title> <type>d:text</type> </property> </properties> </type><!– added the type here to close <type name="my:osalunos">–> </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>
Please correct the errors below then click OK. * A system error happened during the operation: 00180005 Failed to compile model my:alunos
<model name="mgo:alunos" xmlns="http://www.alfresco.org/model/dictionary/1.0"> <description>Alunos</description> <author>Mmartins</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="mgo.alunos" prefix="mgo"/> </namespaces> <!– Type and Aspect definitions go here –> <types> <type name="mgo:osalunos"> <title>Os Alunos</title> <parent>cm:content</parent> <properties> <property name="mgo:Nome"> <title>Nome</title> <type>d:text</type> </property> <property name="mgo:DocumentodeID"> <title>Documento de ID</title> <type>d:text</type> </property> <property name="mgo:NumdocdeID"> <title>Numero de documento de ID</title> <type>d:text</type> </property> <property name="mgo:datanascimento"> <title>Data de nascimento</title> <type>d:datetime</type> </property> <property name="mgo:morada"> <title>Morada</title> <type>d:text</type> </property> </properties> </type><!– added the type here–> </types> <aspects> </aspects> </model>
<alfresco-config> <config evaluator="node-type" condition="mgo:alunos"> <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="mgo:Nome" /> <show-property name="mgo:DocumentodeID" /> <show-property name="mgo:NumdocdeID" /> <show-property name="mgo:datanascimento" /> <show-property name="mgo:morada" /> <show-property name="mgo:email" /> <show-property name="mgo:telefone" /> <show-property name="mgo:curso" /> <show-property name="mgo:Escola"/> <show-property name="mgo:Bolseiro"/> <show-property name="mgo:datadebolseiro"/> <show-property name="mgo:nib"/> <show-property name="mgo:numconta"/> <show-property name="mgo:numbanco"/> <show-association name="custom:PRImage"/> <show-association name="custom:PRFiles"/> </property-sheet> </config> <config evaluator="string-compare" condition="Content Wizards"> <content-types> <type name="mgo:alunos" /> </content-types> </config> <config evaluator="string-compare" condition="Action Wizards"> <aspects> <aspect name="mgo:osalunos"/> </aspects> <subtypes> <type name="mgo:alunos"/> </subtypes> </config> </alfresco-config>
<?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>
2. Create custom-model-context.xml and include following code:=snip= done so. =(done so, used that exact name.
<?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/alunos.xml </value> </list> </property> </bean> </beans>
<model name="mgo:alunos" xmlns="http://www.alfresco.org/model/dictionary/1.0"> <description>Alunos</description> <author>Mmartins</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="mgo.alunos" prefix="mgo"/> </namespaces> <!– Type and Aspect definitions go here –> <types> <type name="mgo:osalunos"> <title>Os Alunos</title> <parent>cm:content</parent> <properties> <property name="mgo:Nome"> <title>Nome</title> <type>d:text</type> </property> <property name="mgo:DocumentodeID"> <title>Documento de ID</title> <type>d:text</type> </property> <property name="mgo:NumdocdeID"> <title>Numero de documento de ID</title> <type>d:text</type> </property> <property name="mgo:datanascimento"> <title>Data de nascimento</title> <type>d:datetime</type> </property> <property name="mgo:morada"> <title>Morada</title> <type>d:text</type> </property> <property name="mgo:email"> <title>Email</title> <type>d:text</type> </property> <property name="mgo:telefone"> <title>Telefone</title> <type>d:int</type> </property> <property name="mgo:curso"> <title>Curso</title> <type>d:text</type> </property> <property name="mgo:Escola"> <title>Escola/Institui??o</title> <type>d:text</type> </property> <property name="mgo:Bolseiro"> <title>Bolseiro</title> <type>d:boolean</type> <default>false</default> </property> <property name="mgo:datadebolseiro"> <title>Data de Bolseiro( Bolseiro desde)</title> <type>d:datetime</type> </property> <property name="mgo:nib"> <title>Nib</title> <type>d:text</type> </property> <property name="mgo:numconta"> <title>Numero de conta</title> <type>d:text</type> </property> <property name="mgo:numbanco"> <title>numero do banco</title> <type>d:text</type> </property> </properties> <associations> <association name="mgo:alImage"> <title>Alunos Image</title> <source> <mandatory>false</mandatory> <many>true</many> </source> <target> <class>cm:content</class> <mandatory>false</mandatory> <many>false</many> </target> </association> <association name="mgo:alFiles"> <title>alunos Files</title> <source> <mandatory>false</mandatory> <many>true</many> </source> <target> <class>cm:content</class> <mandatory>false</mandatory> <many>true</many> </target> </association> </associations> </type><!– added the type here–> </types> <aspects> <!– <aspect name="mgo:imageClassification"> <title>Image Classification</title> <properties> <property name="mgo:width"> <type>d:int</type> </property> <property name="mgo:height"> <type>d:int</type> </property> <property name="mgo:resolution"> <type>d:int</type> </property> </properties> </aspect>–> </aspects> </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/alunos.xml</value> </list> </property> </bean> </beans>
<alfresco-config> <config evaluator="node-type" condition="mgo:alunos"> <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="mgo:Nome" /> <show-property name="mgo:DocumentodeID" /> <show-property name="mgo:NumdocdeID" /> <show-property name="mgo:datanascimento" /> <show-property name="mgo:morada" /> <show-property name="mgo:email" /> <show-property name="mgo:telefone" /> <show-property name="mgo:curso" /> <show-property name="mgo:Escola"/> <show-property name="mgo:Bolseiro"/> <show-property name="mgo:datadebolseiro"/> <show-property name="mgo:nib"/> <show-property name="mgo:numconta"/> <show-property name="mgo:numbanco"/> <show-association name="mgo:alImage"/> <show-association name="mgo:alFiles"/> </property-sheet> </config> <config evaluator="string-compare" condition="Content Wizards"> <content-types> <type name="mgo:alunos" /> </content-types> </config> <config evaluator="string-compare" condition="Action Wizards"> <aspects> <aspect name="mgo:osalunos"/> </aspects> <subtypes> <type name="mgo:alunos"/> </subtypes> </config> </alfresco-config>