02-26-2007 12:52 PM
02-26-2007 07:21 PM
02-27-2007 04:06 AM
02-27-2007 09:50 AM
02-27-2007 11:36 AM
03-05-2007 06:33 AM
03-07-2007 11:21 AM
<?xml version="1.0" encoding="UTF-8"?>
<model name="internna:internnaModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<description>Extends the model to add URL support</description>
<author>Jose Noheda</author>
<published>2007-03-07</published>
<version>0.1</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="internna.model" prefix="internna"/>
</namespaces>
<types>
<type name="internna:urlDocument">
<title>URLDocument</title>
<parent>cm:content</parent>
<properties>
<property name="internna:URI">
<type>d:text</type>
<mandatory>true</mandatory>
</property>
</properties>
</type>
</types>
</model>
03-08-2007 03:48 AM
<?xml version="1.0" encoding="UTF-8"?>
<!– Definition of new Model –>
<!– The important part here is the name - Note: the use of the my: namespace
which is defined further on in the document –>
<model name="compt:comptagemodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>Modele comptage</description>
<author>Christophe</author>
<version>0.1</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="compt.comptage.model" prefix="compt"/>
</namespaces>
<types>
<!– Definition of new Content Type: Standard Operating Procedure –>
<type name="compt:eleve">
<title>Comptage</title>
<parent>cm:content</parent>
<properties>
<property name="compt:Nom">
<type>d:text</type>
</property>
<property name="compt:Prenom">
<type>d:text</type>
</property>
<property name="compt:NumNat">
<type>d:long</type>
</property>
<property name="compt:DateNai">
<type>d:date</type>
</property>
</properties>
</type>
</types>
</model>
Create (or modify) "example-model-context.xml"<?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/comptageModel.xml</value>
</list>
</property>
</bean>
</beans>
Modify "web-client-config-custom.xml" by adding following lines : <config evaluator="string-compare" condition="Content Wizards">
<content-types>
<type name="compt:eleve"/>
</content-types>
</config>
<config evaluator="node-type" condition="compt:eleve">
<property-sheet>
<show-property name="compt:Nom" />
<show-property name="compt:Prenom" />
<show-property name="compt:NumNat" />
<show-property name="compt:DateNai" />
</property-sheet>
</config>
<!– Configuring of the advanced search –>
<config evaluator="string-compare" condition="Advanced Search">
<advanced-search>
<content-types>
<type name="compt:eleve" />
</content-types>
<custom-properties>
<meta-data type="compt:eleve" property="compt:Nom" />
<meta-data type="compt:eleve" property="compt:Prenom" />
<meta-data type="compt:eleve" property="compt:NumNat" />
<meta-data type="compt:eleve" property="compt:DateNai" />
</custom-properties>
</advanced-search>
</config>
<config evaluator="string-compare" condition="Action Wizards">
<specialise-types>
<type name="compt:eleve"/>
</specialise-types>
</config>
All this files must be in Alfresco\tomcat\shared\classes\alfresco\extensionTags
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.