05-15-2013 08:17 AM
05-15-2013 11:34 AM
<config evaluator="string-compare" condition="Advanced Search">
<advanced-search>
<content-types>
<type name="my:contentType" />
</content-types>
<folder-types>
</folder-types>
<custom-properties>
<meta-data type="my:contentType" property="my:documentNumber" />
</custom-properties>
</advanced-search>
</config>
<form label="Patient Information" description="Patient Information Search">my:contentType</form>
<config evaluator="model-type" condition="my:contentType">
<forms>
<!– Search form –>
<form id="search">
<field-visibility>
<show id="cm:name" />
<show id="my:documentNumber" />
</field-visibility>
</form>
</forms>
</config>
05-17-2013 07:56 AM
05-18-2013 08:01 AM
<?xml version="1.0" encoding="UTF-8"?>
<!– Custom Model –>
<!– Note: This model is pre-configured to load at startup of the Repository. So, all custom –>
<!– types and aspects added here will automatically be registered –>
<model name="custom:customModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>Custom Model</description>
<author></author>
<version>1.0</version>
<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"/>
</imports>
<!– Introduction of new namespaces defined by this model –>
<!– NOTE: The following namespace custom.model should be changed to reflect your own namespace –>
<namespaces>
<namespace uri="custom.model" prefix="custom"/>
</namespaces>
<aspects>
<aspect name="custom:nsmileynotafiscal">
<title>Invoice</title>
<properties>
<property name="custom:nsmileynomecliente">
<title>Customer Name</title>
<type>d:text</type>
</property>
<property name="custom:nsmileynumero">
<title>Number</title>
<type>d:int</type>
</property>
<property name="custom:nsmileydata">
<title>Date</title>
<type>d:date</type>
</property>
</properties>
</aspect>
</aspects>
</model>
<?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="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/extension/customModel.xml</value>
</list>
</property>
</bean>
</beans>
<alfresco-config>
<config evaluator="string-compare" condition="Action Wizards">
<aspects>
<aspect name="custom:nsmileynotafiscal"/>
</aspects>
</config>
<config evaluator="string-compare" condition="Advanced Search">
<advanced-search>
<content-types>
<type name="cm:content" />
</content-types>
<custom-properties>
<meta-data aspect="custom:nsmileynotafiscal" property="custom:nsmileynomecliente"/>
<meta-data aspect="custom:nsmileynotafiscal" property="custom:nsmileynumero"/>
</custom-properties>
</advanced-search>
</config>
<config evaluator="aspect-name" condition="custom:nsmileynotafiscal">
<property-sheet>
<show-property name="custom:nsmileynomecliente"/>
<show-property name="custom:nsmileynumero"/>
<show-property name="nsmileydata"/>
</property-sheet>
</config>
</alfresco-config>
05-21-2013 02:22 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.