10-05-2015 07:24 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="someco.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/extension/model/MVProjectModel.xml</value>
</list>
</property>
</bean>
</beans>
<model name="mv:projectmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<description>Marma Vastgoed Project Model</description>
<author>Onno van der Heijden</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.marma.nl/model/MWProjectModel/1.0" prefix="mv" />
</namespaces>
<aspects>
<aspect name="mv:project">
<title>Project</title>
<properties>
<property name="mv:name">
<title>Project Name</title>
<type>d:text</type>
</property>
<property name="mv:start">
<title>Project Start Date</title>
<type>d:date</type>
</property>
<property name="mv:end">
<title>Project End Date</title>
<type>d:date</type>
</property>
</properties>
</aspect>
</aspects>
</model>
<aspect name="mv:project" />
to the aspects element within <config evaluator="string-compare" condition="DocumentLibrary" replace="true">
as so:
<aspects>
<!– Aspects that a user can see –>
<visible>
<aspect name="cm:generalclassifiable" />
<aspect name="cm:complianceable" />
<aspect name="cm:dublincore" />
<aspect name="cm:effectivity" />
<aspect name="cm:summarizable" />
<aspect name="cm:versionable" />
<aspect name="cm:templatable" />
<aspect name="cm:emailed" />
<aspect name="emailserver:aliasable" />
<aspect name="cm:taggable" />
<aspect name="app:inlineeditable" />
<aspect name="cm:geographic" />
<aspect name="exif:exif" />
<aspect name="audio:audio" />
<aspect name="cm:indexControl" />
<aspect name="dp:restrictable" />
<aspect name="mv:project" />
</visible>
<!– Aspects that a user can add. Same as "visible" if left empty –>
<addable>
</addable>
<!– Aspects that a user can remove. Same as "visible" if left empty –>
<removeable>
</removeable>
</aspects>
<forms>
<!– Default form configuration used on the document details and edit metadata pages –>
<form>
<field-visibility>
<show id="mv:name" />
</field-visibility>
<appearance>
<field id="mv:name" label-id="prop.mv_name" />
</appearance>
</form>
<!– Document Library pop-up Edit Metadata form –>
<form id="doclib-simple-metadata">
<field-visibility>
<show id="mv:name" />
</field-visibility>
<appearance>
<field id="mv:name" label-id="prop.mv_name" />
</appearance>
</form>
<!– Document Library Inline Edit form –>
<form id="doclib-inline-edit">
<field-visibility>
<show id="mv:name" />
</field-visibility>
<appearance>
<field id="mv:name" label-id="prop.mv_name" />
</appearance>
</form>
</forms>
10-07-2015 11:14 PM
<config evaluator="node-type" condition="sc:whitepaper">
<config evaluator="model-type" condition="sc:whitepaper">
<config evaluator="aspect" condition="sc:webable">
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.