10-08-2010 02:45 AM
<model name="foo:xxfoomodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
…
<aspect name="foo:siteFolder">
<title>foo site folder</title>
<properties>
<property name="foo:siteKey">
<title>site's key</title>
<type>d:text</type>
</property>
</properties>
…
<config evaluator="aspect-name" condition="foo:siteFolder">
<property-sheet>
<show-property name="foo:siteKey" read-only="true"/>
</property-sheet>
</config>
xxfoomodel.properties is placed in Company Home -> Data Dictionary -> Messages:
foo_xxfoomodel.aspect.foo_siteFolder.title=Site folder
foo_xxfoomodel.property.foo_siteKey.title=Site key
10-08-2010 04:09 AM
01-25-2011 06:51 AM
01-26-2011 06:25 AM
<?xml version="1.0" encoding="UTF-8"?>
<model name="dw:dwcustommodels" xmlns="http://www.alfresco.org/model/dictionary/1.0">
…..
<namespaces>
<namespace uri="dw.custom.models" prefix="dw"/>
</namespaces>
<constraints>
….
</constraints>
<types>
<type name="dw:tegning">
<title>Tegning</title>
<parent>cm:content</parent>
<properties>
<property name="dw:dokumentnummer">
<title>Dokumentnummer</title>
<description>Dokumentnummer til dokument</description>
<type>d:int</type>
<mandatory>true</mandatory>
</property>
…………….
</properties>
</type>
<type name="dw:teknisk">
<title>Teknisk tegning</title>
<parent>dw:tegning</parent>
<properties>
<property name="dw:teknisk_tegning_type">
<title>Teknisk tegningtype</title>
<description>Teknisk tegningstype</description>
<type>d:text</type>
<constraints>
<constraint ref="dw:teknisk_tegning_type_constraint" />
</constraints>
</property>
</properties>
</type>
</types>
</model>
<?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="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/extension/darwinModel.xml</value>
</list>
</property>
<property name="labels">
<list>
<value>alfresco/messages/darwinModelLabels</value>
</list>
</property>
</bean>
</beans>
<alfresco-config>
…….
<config evaluator="string-compare" condition="DocumentLibrary" replace="true">
<types>
<type name="cm:content">
<subtype name="dw:tegning" />
<subtype name="dw:teknisk" />
</type>
<type name="dw:tegning">
<subtype name="dw:teknisk"/>
</type>
<type name="cm:folder">
</type>
</types>
</config>
</alfresco-config>
dw_dwcustommodels.description=Darwin content models
dw_dwcustommodels.type.dw_tegning.title=Tegning
dw_dwcustommodels.type.dw_tegning.description=Tegning
dw_dwcustommodels.property.dw_dokumentnummer.title=Dokumentnummer
dw_dwcustommodels.property.dw_dokumentnummer.description=Dokumentnummer
dw_dwcustommodels.property.dw_tegning_type.title=Tegningstype
dw_dwcustommodels.property.dw_tegning_type.description=Tegningstype
dw_dwcustommodels.property.dw_status.title=Dokumentstatus
dw_dwcustommodels.property.dw_status.description=Dokumentstatus
dw_dwcustommodels.type.dw_teknisk.title=Teknisk tegning
dw_dwcustommodels.type.dw_teknisk.description=Teknisk tegning
dw_dwcustommodels.property.dw_teknisk_tegning_type.title=Teknisk tegningstype
dw_dwcustommodels.property.dw_teknisk_tegning_type.description=Teknisk tegningstype
01-26-2011 06:25 AM
02-01-2011 08:16 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.