02-04-2009 03:45 AM
<?xml version="1.0" encoding="UTF-8"?>
<!– Definition of new Model –>
<model name="sc:arcplace" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>Arcplace AG: Verträge mit Anhängen in Alfresco</description>
<author>Daniel Elsener</author>
<version>1.0</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 –>
<namespaces>
<namespace uri="http://www.someco.com/model/content/1.0" prefix="sc" />
</namespaces>
<!– Combobox Values –>
<constraints>
<constraint name="sc:UserList" type="LIST">
<parameter name="allowedValues">
<list>
<value>Alan Shearer</value>
<value>Michael Owen</value>
<value>David Ginola</value>
<value>Kevin Keegan</value>
<value>Daniel Elsener</value>
</list>
</parameter>
</constraint>
</constraints>
<types>
<!– Enterprise-wide generic document type –>
<type name="sc:invoice">
<title>Rechnungen</title>
<parent>cm:content</parent>
<properties>
<property name="sc:Date">
<title>Datum</title>
<type>d:date</type>
</property>
<property name="sc:InvoiceNo">
<title>Rechnungsnummer</title>
<type>d:int</type>
</property>
<property name="sc:InvoiceText">
<title>Vermerk</title>
<type>d:text</type>
</property>
<property name="sc:User">
<title>Sachbearbeiter</title>
<type>d:text</type>
<constraints>
<constraint ref="sc:UserList" />
</constraints>
</property>
<property name="sc:Payed">
<title>bezahlt</title>
<type>d:boolean</type>
<default>false</default>
</property>
</properties>
<mandatory-aspects>
<aspect>cm:generalclassifiable</aspect>
</mandatory-aspects>
</type>
</types>
</model>
and here's the xml code of my web client conf file:<alfresco-config>
<!– add "Rechnungen" properties to property sheet –>
<config evaluator="node-type" condition="sc:invoice">
<property-sheet>
<show-property name="sc:Date" read-only="true" />
<show-property name="sc:InvoiceNo" />
<show-property name="sc:InvoiceText" />
<show-property name="sc:User" />
<show-property name="sc:Payed" />
</property-sheet>
</config>
<!– add "Rechnungen" types to add content list –>
<config evaluator="string-compare" condition="Content Wizards">
<content-types>
<type name="sc:invoice" />
</content-types>
</config>
<!– add "Rechnungen" types to advanced search –>
<config evaluator="string-compare" condition="Advanced Search">
<advanced-search>
<content-types>
<type name="sc:invoice" />
</content-types>
<folder-types>
</folder-types>
<custom-properties>
<meta-data type="sc:invoice" property="sc:Date" />
<meta-data type="sc:invoice" property="sc:InvoiceNo" />
<meta-data type="sc:invoice" property="sc:InvoiceText" />
<meta-data type="sc:invoice" property="sc:User" />
<meta-data type="sc:invoice" property="sc:Payed" />
</custom-properties>
</advanced-search>
</config>
</alfresco-config>
Can anybody help me please?
02-04-2009 04:01 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.