11-06-2012 03:22 AM
<?xml version="1.0" encoding="UTF-8"?>
<model name="tr:somecomodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<description>Someco Model</description>
<author>Jeff Potts</author>
<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="http://www.someco.com/model/content/1.0" prefix="tr" />
</namespaces>
<constraints />
<types>
<type name="tr:department">
<title>Department</title>
<parent>cm:content</parent>
<properties>
<property name="tr:department_name">
<title>Department name</title>
<type>d:text</type>
<protected>false</protected>
<mandatory>true</mandatory>
</property>
</properties>
</type>
</types>
</model>
<alfresco-config>
<config evaluator="string-compare" condition="Content Wizards" replace="true">
<content-types>
<type name="tr:department" />
</content-types>
</config>
<config evaluator="node-type" condition="tr:department">
<property-sheet>
<show-property name="tr:department_name" />
</property-sheet>
</config>
</alfresco-config>
<alfresco-config>
<config evaluator="string-compare" condition="RepositoryLibrary" replace="true">
<visible>true</visible>
</config>
<!– Department –>
<config evaluator="model-type" condition="tr:department">
<forms>
<form>
<field-visibility>
<show id="tr:department_name" />
</field-visibility>
</form>
</forms>
</config>
<config evaluator="node-type" condition="tr:department">
<forms>
<form>
<field-visibility>
<show id="tr:department_name" />
</field-visibility>
</form>
</forms>
</config>
<config evaluator="string-compare" condition="DocumentLibrary">
<types>
<type name="cm:content">
<subtype name="tr:department" />
</type>
</types>
<create-content>
<content id="html" mimetype="text/html" label="department" itemid="tr:department"/>
</create-content>
</config>
</alfresco-config>
Establish a department. Create new page with link:11-06-2012 03:41 AM
11-06-2012 04:04 AM
11-09-2012 03:08 AM
<create-content>
<content id="html" mimetype="text/html" label="department" itemid="tr:department"/>
</create-content>
on
<content id="myContent" label="Department" type="pagelink" index="90" >
<param name="page">create-content?destination={nodeRef}&itemId=tr:department&mimeType=text/html</param>
</content>
11-30-2012 09:33 AM
05-11-2013 09:41 PM
07-02-2013 12:26 PM
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.