07-25-2011 05:44 AM
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<bean id="crc.custom.config" class="org.springframework.extensions.config.ConfigBootstrap" init-method="register">
<property name="configService" ref="web.config" />
<property name="configs">
<list>
<value>classpath:alfresco/crc-form-config.xml</value>
</list>
</property>
</bean>
</beans>
<alfresco-config>
<config evaluator="node-type" condition="crc:content">
<forms>
<form>
<field-visibility>
<show id="cm:typeDoc" force="true"/>
<show id="cm:directionDeleguee" force="true"/>
<show id="cm:author" force="true" />
<show id="crc:organization" />
<show id="cm:name" />
<show id="cm:title" />
<show id="cm:description" force="true" />
<show id="crc:dateOfEvent" />
<show id="cm:eventNature" force="true"/>
<show id="cm:created" for-mode="view" />
<show id="cm:modified" for-mode="view" />
<show id="crc:state" />
<show id="crc:sendAlert" for-mode="edit" force="true"/>
</field-visibility>
<appearance>
<field id="cm:typeDoc" label-id="form.field.crc.typeDoc" mandatory="true">
<control template="/org/alfresco/components/form/controls/selectoneremote.ftl">
<control-param name="remoteOptions">listeDocTypes</control-param>
</control>
</field>
<field id="cm:directionDeleguee" label-id="form.field.crc.dgd" mandatory="true">
<control template="/org/alfresco/components/form/controls/selectoneremote.ftl">
<control-param name="remoteOptions">listeDirectionsDelegueesPiloteNiveau2</control-param>
</control>
</field>
<field id="cm:author" mandatory="true" />
<field id="cm:title" mandatory="true">
<control template="/org/alfresco/components/form/controls/textfield.ftl" />
</field>
<field id="crc:dateOfEvent" label-id="form.field.crc.dateOfEvent">
<control template="/org/alfresco/components/form/controls/date.ftl">
<control-param name="showTime">false</control-param>
</control>
</field>
<field id="cm:eventNature" label-id="form.field.crc.eventNature">
<control template="/org/alfresco/components/form/controls/selectoneremote.ftl">
<control-param name="remoteOptions">listeNatureEvenement</control-param>
</control>
</field>
<!– <field id="crc:state" label-id="form.field.crc.state">–>
<!– <control template="/org/alfresco/components/form/controls/selectoneremote.ftl">–>
<!– <control-param name="remoteOptions">listeDocStates</control-param>–>
<!– </control>–>
<!– </field>–>
<field id="crc:state" label-id="form.field.crc.state">
<control template="/org/alfresco/components/form/controls/displayViewHiddenEdit.ftl"/>
</field>
<field id="crc:sendAlert" label-id="form.field.crc.sendAlert" />
<field id="crc:organization" label-id="form.field.crc.organization" />
</appearance>
</form>
<form id="doclib-inline-edit">
<field-visibility>
<show id="cm:typeDoc" force="true"/>
<show id="cm:directionDeleguee" force="true"/>
<show id="cm:author" force="true" />
<show id="crc:organization" />
<show id="cm:name" />
<show id="cm:title" />
<show id="cm:description" force="true" />
<show id="crc:dateOfEvent" />
<show id="cm:eventNature" force="true"/>
<show id="cm:content" force="true" />
<show id="cm:created" for-mode="view" />
<show id="cm:modified" for-mode="view" />
<show id="crc:state" for-mode="view"/>
<show id="crc:sendAlert" for-mode="edit" force="true"/>
</field-visibility>
<appearance>
<field id="cm:content">
<control>
<control-param name="editorAppearance">explorer</control-param>
<control-param name="forceEditor">true</control-param>
</control>
</field>
<field id="cm:typeDoc" label-id="form.field.crc.typeDoc" read-only="true">
<control template="/org/alfresco/components/form/controls/selectoneremote.ftl">
<control-param name="remoteOptions">listeDocTypes</control-param>
</control>
</field>
<field id="cm:directionDeleguee" label-id="form.field.crc.dgd">
<control template="/org/alfresco/components/form/controls/selectoneremote.ftl">
<control-param name="remoteOptions">listeDirectionsDelegueesPiloteNiveau2</control-param>
</control>
</field>
<field id="cm:author" mandatory="true" />
<field id="cm:title" mandatory="true">
<control template="/org/alfresco/components/form/controls/textfield.ftl" />
</field>
<field id="crc:dateOfEvent" label-id="form.field.crc.dateOfEvent">
<control template="/org/alfresco/components/form/controls/date.ftl">
<control-param name="showTime">false</control-param>
</control>
</field>
<field id="cm:eventNature" label-id="form.field.crc.eventNature">
<control template="/org/alfresco/components/form/controls/selectoneremote.ftl">
<control-param name="remoteOptions">listeNatureEvenement</control-param>
</control>
</field>
<!– <field id="crc:state" label-id="form.field.crc.state">–>
<!– <control template="/org/alfresco/components/form/controls/selectoneremote.ftl">–>
<!– <control-param name="remoteOptions">listeDocStates</control-param>–>
<!– </control>–>
<!– </field>–>
<field id="crc:state" label-id="form.field.crc.state">
<control template="/org/alfresco/components/form/controls/displayViewHiddenEdit.ftl"/>
</field>
<field id="crc:sendAlert" label-id="form.field.crc.sendAlert" />
<field id="crc:organization" label-id="form.field.crc.organization" />
</appearance>
</form>
</forms>
</config>
</alfresco-config>
07-25-2011 06:11 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.