07-23-2009 08:24 AM
07-23-2009 01:35 PM
07-23-2009 11:54 PM
<?xml version="1.0" encoding="UTF-8"?>
<!– Definition of new Model –>
<model name="sc:somecomodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>Someco Model</description>
<author>Optaros</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" />
<import uri="http://www.alfresco.org/model/system/1.0" prefix="sys" />
<import uri="http://www.alfresco.org/model/wcmmodel/1.0" prefix="wcm"/>
</imports>
<!– Introduction of new namespaces defined by this model –>
<namespaces>
<namespace uri="http://www.someco.com/model/content/1.0" prefix="sc" />
</namespaces>
<constraints>
<constraint name="sc:campaignList" type="LIST">
<parameter name="allowedValues">
<list>
<value>Application Syndication</value>
<value>Private Event Retailing</value>
<value>Social Shopping</value>
</list>
</parameter>
</constraint>
</constraints>
<types>
<type name="sc:wcmdoc">
<title>Someco WCM Document</title>
<parent>wcm:avmplaincontent</parent>
<properties>
<property name="sc:wcmcampaign">
<type>d:text</type>
<multiple>true</multiple>
<constraints>
<constraint ref="sc:campaignList" />
</constraints>
</property>
</properties>
</type>
</types>
</model>
<alfresco-config>
<config evaluator="string-compare" condition="Content Wizards">
<content-types>
<type name="sc:wcmdoc" />
</content-types>
</config>
<config evaluator="node-type" condition="sc:wcmdoc">
<property-sheet>
<show-property name="sc:wcmcampaign" display-label-id="Campaign"
ignore-if-missing="false" />
</property-sheet>
</config>
</alfresco-config>
07-29-2009 03:05 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.