06-12-2008 12:11 PM
<config evaluator="string-compare" condition="Content Wizards">
<content-types>
<type name="aa:bb" />
</content-types>
</config>
<config evaluator="node-type" condition="aa:bb">
<property-sheet>
<show-property name="mimetype" display-label-id="content_type"
component-generator="MimeTypeSelectorGenerator" />
<show-property name="size" display-label-id="size"
converter="org.alfresco.faces.ByteSizeConverter"
show-in-edit-mode="false" />
<show-association name="custom:PRFiles"/>
</property-sheet>
</config>
<types>
<type name="aa:bb">
<title>My Content</title>
<parent>cm:content</parent>
<associations>
<association name="custom:PRFiles">
<title>Associated files</title>
<target>
<class>cm:content</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
</associations>
<mandatory-aspects>
<aspect>cm:versionable</aspect>
</mandatory-aspects>
</type>
</types>
<?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>
06-12-2008 12:27 PM
<config evaluator="string-compare" condition="Content Wizards">
<content-types>
<type name="bl:doc"/>
</content-types>
</config>
<config evaluator="string-compare" condition="Action Wizards">
<!–The list of aspects to show in the add/remove features action –>
<!–and the hasaspect condition–>
<aspects>
<aspect name="bl:expireable"/>
<aspect name="bl:nameable"/>
<aspect name="bl:approvable"/>
</aspects>
<!–The list of types shown in the issubtype condition –>
<subtypes>
<type name="bl:doc" />
</subtypes>
<!–The list of content and/or folder types shown in the specialisetype action –>
<specialise-types>
<type name="bl:doc" />
</specialise-types>
</config>
<config evaluator="string-compare" condition="Advanced Search">
<advanced-search>
<content-types>
<type name="bl:doc" />
</content-types>
<custom-properties>
<meta-data aspect="bl:nameable" property="bl:fname" display-label-id="firstname"/>
<meta-data aspect="bl:nameable" property="bl:lname" display-label-id="lastname"/>
<meta-data aspect="bl:expireable" property="bl:expired" display-label-id="expired"/>
<meta-data aspect="bl:expireable" property="bl:expirationdate" display-label-id="expirationdate" />
</custom-properties>
</advanced-search>
</config>
06-12-2008 02:49 PM
<config evaluator="string-compare" condition="Content Wizards">
<content-types>
<type name="aa:bb" />
</content-types>
</config><model name="aa:custommodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>Custom Model</description>
<author>xxx</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"/>
<import uri="http://www.alfresco.org/model/system/1.0" prefix="sys"/>
</imports>
<!– Introduction of new namespaces defined by this model –>
<namespaces>
<namespace uri="custom.model" prefix="aa"/>
</namespaces>
06-13-2008 01:14 PM
06-13-2008 01:50 PM
06-18-2008 09:12 AM
java -cp .:../classes:alfresco-repository.jar:alfresco-core.jar:log4j-1.2.8.jar:commons-logging-1.0.4.jar:ehcache-1.3.0-patched.jar:jibx-run.jar:xpp3-1.1.3_8.jar:spring-2.0.2.jar org.alfresco.repo.dictionary.TestModel alfresco/extension/nameOfYourModule.xml
08-12-2008 02:00 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.