02-26-2007 04:28 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>
<version>1.2</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>
<aspects>
<!– Definition of new Aspect Type –>
<aspect name="compt:eleve">
<title>Comptage</title>
<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>
</aspect>
</aspects>
</model>
et j'ai modifié le fichier web-client-config-custom.xml en ajoutant les sections suivantes : <config evaluator="aspect-name" 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>
<config evaluator="string-compare" condition="Action Wizards">
<aspects>
<aspect name="compt:eleve"/>
</aspects>
</config>
mais mon aspect n'apparait pas.02-26-2007 04:35 AM
<?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>
Romain
02-26-2007 04:58 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.