12-20-2010 06:11 PM
<?xml version="1.0" encoding="UTF-8"?>
<model name="ccm:customcontent" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<description>Custom Content Model</description>
<version>1.0</version>
<imports>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
</imports>
<namespaces>
<namespace uri="model.customcontent" prefix="ccm"/>
</namespaces>
<types>
<type name="ccm:mycontent">
<title>Expedient</title>
<parent>cm:content</parent>
<properties>
<property name="ccm:Area">
<title>Area</title>
<description>Name of Area</description>
<type>d:text</type>
</property>
<property name="ccm:Priority">
<title>Priority</title>
<description>Priority of Expedient</description>
<type>d:text</type>
</property>
</properties>
</type>
</types>
<aspects>
</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>
<bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/extension/customContentModel.xml</value>
</list>
</property>
</bean>
</beans>
<alfresco-config>
<config evaluator="string-compare" condition="Action Wizards">
<subtypes>
<type name="ccm:mycontent"/>
</subtypes>
</config>
<config evaluator="string-compare" condition="Action Wizards">
<especialise-types>
<type name="ccm:mycontent"/>
</especialise-types>
</config>
<config evaluator="string-compare" condition="Content Wizards">
<content-types>
<type name="ccm:mycontent" />
</content-types>
</config>
<config evaluator="node-type" condition="ccm:mycontent">
<property-sheet>
<show-property name="ccm:Area"/>
<show-property name="ccm:Priority"/>
</property-sheet>
</config>
</alfresco-config>
12-21-2010 01:12 AM
12-21-2010 09:47 AM
06-23-2011 11:34 AM
<?xml version="1.0" encoding="UTF-8"?>
<!– Arxivable –>
<model name="jmj:contingutPersonalitzat" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>Contingut Personalitzat Arxivable</description>
<author>Josep Martorell Juvanteny</author>
<version>1.0</version>
<imports>
<!– Importem definicions d-Alfresco, concretament el diccionari de dades i el model de contingut 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>
<!– Registrem el Nou namespaces que s-utilitzara en aquest model –>
<!– NOTE: The following namespace custom.model should be changed to reflect your own namespace –>
<namespaces>
<namespace uri="contingut.earxiu" prefix="jmj"/>
</namespaces>
<types>
<!– Definicio del nou tipus de contingut personalitzat –>
<!– Definicio del tipus de contingut jmj:Arxivable –>
<type name="jmj:Arxivable">
<title>Contingut Arxivable</title>
<parent>cm:content</parent>
<properties>
<property name="jmj:CodRef">
<title>Codi referència</title>
<type>d:text</type>
</property>
<property name="jmj:nDoc">
<title>Número Document</title>
<type>d:text</type>
</property>
<property name="jmj:DataCreacio">
<title>Data Creació</title>
<type>d:date</type>
</property>
</properties>
</type>
</types>
<aspects>
<!– Definicio dels aspectes personalitzats –>
</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>
<!– Registre del contingut Arxivable –>
<bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/extension/Arxivable.xml</value>
</list>
</property>
</bean>
</beans>
<config evaluator="string-compare" condition="Action Wizards">
<subtypes>
<type name="jmj:Arxivable"/>
</subtypes>
</config>
<config evaluator="string-compare" condition="Action Wizards">
<especialise-types>
<type name="jmj:Arxivable"/>
</especialise-types>
</config>
<config evaluator="string-compare" condition="Content Wizards">
<content-types>
<type name="jmj:Arxivable"/>
</content-types>
</config>
<config evaluator="node-type" condition="jmj:Arxivable">
<property-sheet>
<show-property name="jmj:CodRef"/>
<show-property name="jmj:nDoc"/>
<show-property name="jmj:DataCreacio"/>
</property-sheet>
</config>
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.