<property name="ge:carStatus">
<title>CAR Status</title>
<type>d:text</type>
<protected>false</protected>
<mandatory>true</mandatory>
<multiple>false</multiple>
<constraints>
<constraint ref="ge:status"/>
</constraints>
</property>
<constraints>
<constraint name="ge:status" type="LIST">
<parameter name="allowedValues">
<list>
<value>New</value>
<value>In process</value>
<value>Closed</value>
</list>
</parameter>
</constraint>
</constraints>
<!– Registration of new models –>
<bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/extension/NewModel.xml</value>
</list>
</property>
</bean>
La cuestión es que creé un fichero llamado NewModel-context.xml con el siguiente contenido:<!– Registration of new models –>
<bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/extension/NewModel.xml</value>
</list>
</property>
</bean>
<?xml version="1.0" encoding="UTF-8"?>
<!– Modelo personalizado –>
<model name="ajv:modeloPersonalizado" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>Modelo personalizado</description>
<author>Adrian E. Jimenez Vega</author>
<version>1.0</version>
<imports>
<!– Importamos definiciones de Alfresco, concretamente el diccionario de datos y el modelo de contenido de Alfresco –>
<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>
<!– Registramos el Nuevo namespaces que se utilizara en este modelo –>
<!– NOTE: The following namespace custom.model should be changed to reflect your own namespace –>
<namespaces>
<namespace uri="modelo.miniguia" prefix="ajv"/>
</namespaces>
<types>
<!– Definicion de los tipos de contenido personalizados –>
<!– Definicion del tipo de contenido ajv:carpeta –>
<type name="ajv:carpeta">
<title>Carpeta de Proyecto</title>
<parent>cm:content</parent>
<properties>
<property name="ajv:Mail">
<title>eMail</title>
<type>d:text</type>
</property>
<property name="ajv:Proyecto">
<title>Proyecto</title>
<type>d:text</type>
</property>
<property name="ajv:Fecha">
<title>Fecha</title>
<type>d:date</type>
</property>
</properties>
</type>
</types>
<aspects>
<!– Definicion de los aspectos personalizados –>
</aspects>
</model>
web-client-config-custom.xml <!– New Model –>
<config evaluator="string-compare" condition="Action Wizards">
<subtypes>
<type name="ajv:carpeta"/>
</subtypes>
</config>
<config evaluator="string-compare" condition="Action Wizards">
<especialise-types>
<type name="ajv:carpeta"/>
</especialise-types>
</config>
<config evaluator="string-compare" condition="Content Wizards">
<content-types>
<type name="ajv:carpeta"/>
</content-types>
</config>
<config evaluator="node-type" condition="ajv:carpeta">
<property-sheet>
<show-property name="ajv:Mail"/>
<show-property name="ajv:Proyecto"/>
<show-property name="ajv:Fecha"/>
</property-sheet>
</config>
<!– New Model –>
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.