As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<?xml version="1.0" encoding="UTF-8"?> <model name="my:example" xmlns="http://www.alfresco.org/model/dictionary/1.0"> <description>Sample Model</description> <author>jordiv</author> <version>1.0</version> <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="http://www.jordiv.com/model/content/1.0" prefix="my"/> </namespaces> <aspects> <aspect name="my:sampleProps"> <title>Sample Aspect by jordiv</title> <properties> <property name="my:propOne"> <title>Property 1</title> <type>d:text</type> </property> <property name="my:propTwo"> <title>Property 2</title> <type>d:text</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> <bean id="example.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap"> <property name="models"> <list> <value>alfresco/extension/myModel.xml</value> </list> </property> <property name="labels"> <list> <value>alfresco/extension/mymodel</value> </list> </property> </bean> </beans>
my_model.description=Sample Model
/tomcat/shared/classes/alfresco/extension/
<alfresco-config> <config evaluator="aspect-name" condition="my:sampleProps"> <property-sheet> <show-property name="my:propOne"/> <show-property name="my:propTwo"/> </property-sheet> </config> <config evaluator="string-compare" condition="Action Wizards"> <aspects> <aspect name="my:sampleProps" /> </aspects> </config> </alfresco-config>