01-18-2010 10:53 AM
<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>
01-18-2010 11:17 AM
01-18-2010 11:22 AM
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
01-18-2010 11:35 AM
01-18-2010 11:45 AM
<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>
I added the type , loaded it up again Please correct the errors below then click OK.
* A system error happened during the operation: 00180005 Failed to compile model my:alunos
01-18-2010 03:56 PM
01-19-2010 09:08 AM
<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>
01-20-2010 07:47 AM
<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>
01-20-2010 01:07 PM
01-21-2010 04:32 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.