Skip to content

Instantly share code, notes, and snippets.

@softwareloop
Last active August 29, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save softwareloop/b29818c362dc59837b50 to your computer and use it in GitHub Desktop.
Save softwareloop/b29818c362dc59837b50 to your computer and use it in GitHub Desktop.
uploader-plus-working-with-custom-content-types
<config evaluator="model-type" condition="owd:hrdocument">
<forms>
<form>
<field-visibility>
<show id="cm:name" />
<show id="cm:title" force="true" />
<show id="cm:description" force="true" />
<show id="owd:documentPersonnelNumber" />
<show id="owd:hrDocumentType" />
<show id="owd:documentComment" />
</field-visibility>
<appearance>
<field id="cm:name">
<control>
<control-param name="maxLength">255</control-param>
</control>
</field>
<field id="cm:title">
<control template="/org/alfresco/components/form/controls/textfield.ftl" />
</field>
</appearance>
</form>
</forms>
</config>
<type name="owd:hrdocument">
<title>HR Document</title>
<description>HR documents related to certain employee</description>
<parent>cm:content</parent>
<properties>
<property name="owd:documentPersonnelNumber">
<title>Personnel Number</title>
<type>d:text</type>
<constraints>
<constraint ref="owd:allowedPersonnelNumbers" />
</constraints>
</property>
<property name="owd:hrDocumentType">
<title>Type</title>
<type>d:text</type>
<index enabled="true">
<atomic>true</atomic>
<stored>false</stored>
<tokenised>false</tokenised>
</index>
<constraints>
<constraint ref="owd:allowedHrDocumentTypes" />
</constraints>
</property>
<property name="owd:documentComment">
<title>Comment</title>
<type>d:text</type>
</property>
</properties>
<mandatory-aspects>
<aspect>owd:AspectDate</aspect>
</mandatory-aspects>
</type>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment