05-28-2007 05:23 PM
<?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/cctModel1.xml</value>
<value>alfresco/extension/cctModel2.xml</value>
</list>
</property>
</bean>
</beans>
<?xml version="1.0" encoding="UTF-8"?>
<model name="cct1:mycctmodel1" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<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="my.cct.model1" prefix="cct1"/>
</namespaces>
<types>
<type name="cct1:custconttyp1">
<title>Custom Content 1</title>
<parent>cm:content</parent>
<properties>
<property name="cct1:cctfield1">
<title>Custom Content Field 1</title>
<type>d:text</type>
</property>
</properties>
</type>
</types>
</model>
<?xml version="1.0" encoding="UTF-8"?>
<model name="cct2:mycctmodel2" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<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="my.cct.model2" prefix="cct2"/>
</namespaces>
<types>
<type name="cct2:custconttyp2">
<title>Custom Content 2</title>
<parent>cm:content</parent>
<properties>
<property name="cct2:cctfield2">
<title>Custom Content Field 2</title>
<type>d:text</type>
</property>
</properties>
</type>
</types>
</model>
<alfresco-config>
<config evaluator="node-type" condition="cct1:custconttyp1">
<property-sheet>
<show-property name="mimetype" display-label-id="mimetype"
converter="org.alfresco.faces.MimeTypeConverter"
show-in-edit-mode="false" />
<show-property name="size" display-label-id="size"
converter="org.alfresco.faces.ByteSizeConverter"
show-in-edit-mode="false" />
<show-property name="cct1:cctfield1" />
</property-sheet>
</config>
<config evaluator="node-type" condition="cct2:custconttyp2">
<property-sheet>
<show-property name="mimetype" display-label-id="mimetype"
converter="org.alfresco.faces.MimeTypeConverter"
show-in-edit-mode="false" />
<show-property name="size" display-label-id="size"
converter="org.alfresco.faces.ByteSizeConverter"
show-in-edit-mode="false" />
<show-property name="cct2:cctfield2" />
</property-sheet>
</config>
<config evaluator="string-compare" condition="Content Wizards">
<content-types>
<type name="cct1:custconttyp1" />
<type name="cct2:custconttyp2" />
</content-types>
</config>
<config evaluator="string-compare" condition="Action Wizards">
<subtypes>
<type name="cct1:custconttyp1"/>
<type name="cct2:custconttyp2"/>
</subtypes>
</config>
</alfresco-config>
05-29-2007 04:51 AM
05-29-2007 02:44 PM
Can you clarify some things for me…
Your expectations are correct but I'm not sure what you are actually seeing, do you only see one item in the drop down list of types?
Or do you see both types but it always creates nodes with the first custom type?
Do you see any warnings in the app server console window? If there is a problem with the config you should see some warnings.
Your config looks fine on first inspection so answers to the above may help to narrow down the issue.
05-30-2007 04:04 AM
log4j.logger.org.alfresco.config=debug
09:02:23,578 DEBUG [config.source.ClassPathConfigSource] Loaded 'alfresco/extension/web-client-config-custom.xml' from:
file:/C:/development/projects/community/software/apache-tomcat-5.5.23/shared/classes/alfresco/extension/web-client-confi
g-custom.xml
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.