08-27-2012 05:11 AM
<?xml version="1.0" encoding="UTF-8"?>
<model xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.alfresco.org/model/dictionary/1.0 ../../../../webapps/alfresco/WEB-INF/classes/alfresco/model/modelSchema.xsd"
xmlns="http://www.alfresco.org/model/dictionary/1.0" name="gscom:model">
<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="gscom.model" prefix="gscom"/>
</namespaces>
<!– Type and Aspect definitions go here –>
<aspects>
<aspect name="gscom:documentClassification">
<title>Document Classification</title>
<properties>
<property name="gscom:name">
<type>d:text</type>
</property>
<property name="gscom:publishedDate">
<type>d:datetime</type>
</property>
<property name="gscom:author">
<type>d:text</type>
</property>
</properties>
</aspect>
</aspects>
</model>
<!– Repository Library config section –>
<config evaluator="string-compare" condition="RepositoryLibrary" replace="true">
<!–
Whether the link to the Repository Library appears in the header component or not.
–>
<aspects>
<!– Aspects that a user can see –>
<visible>
<aspect name="gscom:documentClassification" />
</visible>
<!– Aspects that a user can add. Same as "visible" if left empty –>
<addable>
</addable>
<!– Aspects that a user can remove. Same as "visible" if left empty –>
<removeable>
</removeable>
</aspects>
<!– <visible>true</visible> –>
</config>
<config evaluator="aspect" condition="gscom:documentClassification">
<forms>
<form>
<field-visibility>
<show id="gscom:name" />
<show id="gscom:publishedDate" />
<show id="gscom:author" />
</field-visibility>
<appearance>
<field id="gscom:name" label-id="prop.gscom_name" />
<field id="gscom:publishedDate" label-id="prop.gscom_publishedDate" />
<field id="gscom:author" label-id="prop.gscom_author" />
</appearance>
</form>
</forms>
</config>
08-27-2012 01:19 PM
08-28-2012 03:02 AM
What makes you think your model isn't being loaded?
<?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>
08-28-2012 05:40 AM
<!– Custom Forms Extension –>
<config evaluator="node-type" condition="cm:content">
<forms>
<!– Default form configuration used on the document details and edit metadata pages –>
<form>
<field-visibility>
<show id="ex:version" />
</field-visibility>
<appearance>
<field id="ex:version" label="Version" />
</appearance>
</form>
<!– Document Library pop-up Edit Metadata form –>
<form id="doclib-simple-metadata">
<field-visibility>
<show id="ex:version" />
</field-visibility>
<appearance>
<field id="ex:version" label="Version" />
</appearance>
</form>
<!– Document Library Inline Edit form –>
<form id="doclib-inline-edit">
<field-visibility>
<show id="ex:version" />
</field-visibility>
<appearance>
<field id="ex:version" label="Version" />
</appearance>
</form>
</forms>
</config>
04-25-2013 04:49 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.