wiki example not working in web client

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2010 01:15 PM
My frustration with customizing Alfresco continues – this is a time vampire.
I'm following the instructions on the wiki: http://wiki.alfresco.com/wiki/Data_Dictionary_Guide which I believe are current.
I downloaded the sample file and installed it and followed the rest of the instructions which seemed clear.
The instructions to expose custom Content Types and Aspects (http://wiki.alfresco.com/wiki/Displaying_Custom_Metadata) are less clear. This is what I came up with … I'm expecting to be able to see my custom aspects in the web client … but I cannot.
Any hints? This is really frustrating.
alfresco/tomcat/shared/classes/alfresco/extension/example-model-context.xml
alfresco/tomcat/shared/classes/alfresco/extension/exampleModel.xml
alfresco/tomcat/shared/classes/alfresco/extension/web-client-config-custom.xml
I'm following the instructions on the wiki: http://wiki.alfresco.com/wiki/Data_Dictionary_Guide which I believe are current.
I downloaded the sample file and installed it and followed the rest of the instructions which seemed clear.
The instructions to expose custom Content Types and Aspects (http://wiki.alfresco.com/wiki/Displaying_Custom_Metadata) are less clear. This is what I came up with … I'm expecting to be able to see my custom aspects in the web client … but I cannot.
Any hints? This is really frustrating.
alfresco/tomcat/shared/classes/alfresco/extension/example-model-context.xml
<?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/exampleModel.xml</value> </list> </property> </bean></beans>
alfresco/tomcat/shared/classes/alfresco/extension/exampleModel.xml
<?xml version="1.0" encoding="UTF-8"?><model name="my:mynewmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0"> <!– Optional meta-data about the model –> <description>Example custom Model</description> <author></author> <version>1.0</version> <!– Imports are required to allow references to definitions in other models –> <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"/> </imports> <!– Introduction of new namespaces defined by this model –> <!– NOTE: The following namespace my.new.model should be changed to reflect your own namespace –> <namespaces> <namespace uri="my.new.model" prefix="my"/> </namespaces> <types> <!– Definition of new Content Type: Standard Operating Procedure –> <type name="my:sop"> <title>Standard Operating Procedure</title> <parent>cm:content</parent> <properties> <property name="my:publishedDate"> <type>d:datetime</type> </property> <property name="my:authorisedBy"> <type>d:text</type> </property> </properties> <associations> <association name="my:signOff"> <source> <mandatory>false</mandatory> <many>false</many> </source> <target> <class>cm:content</class> <mandatory>false</mandatory> <many>false</many> </target> </association> <child-association name="my:processSteps"> <source> <mandatory>false</mandatory> <many>false</many> </source> <target> <class>cm:content</class> <mandatory>false</mandatory> <many>true</many> </target> </child-association> </associations> </type> </types> <aspects> <!– Definition of new Content Aspect: Image Classification –> <aspect name="my:imageClassification"> <title>Image Classfication</title> <properties> <property name="my:width"> <type>d:int</type> </property> <property name="my:height"> <type>d:int</type> </property> <property name="my:resolution"> <type>d:int</type> </property> </properties> </aspect> </aspects></model>
alfresco/tomcat/shared/classes/alfresco/extension/web-client-config-custom.xml
<alfresco-config> <config evaluator="aspect-name" condition="my:imageClassification"> <property-sheet> <show-property name="my:width"/> <show-property name="my:height"/> <show-property name="my:resolution" show-in-view-mode="false" /> </property-sheet> </config> <config evaluator="node-type" condition="my:sop"> <property-sheet> <show-property name="name" show-in-edit-mode="false" /> <show-property name="mimetype" display-label-id="mimetype" converter="org.alfresco.faces.MimeTypeConverter" show-in-edit-mode="false" /> <show-property name="title" show-in-edit-mode="false" /> <show-property name="description" 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="my:publishedDate" /> <show-association name="my:signOff" /> <show-property name="my:authorisedBy" /> <show-child-association name="my:processSteps" /> <show-association name="my:signOff"/> <show-child-association name="my:processSteps"/> </property-sheet> </config> <config evaluator="string-compare" condition="Content Wizards"> <content-types> <type name="my:sop" display-label="SOP" display-label-id="sop" /> </content-types> </config></alfresco-config>
Labels:
- Labels:
-
Archive
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2010 01:22 PM
I should add that the content type doesn't show up under content either and that the log file shows no warnings or error with everything appearing to load fine.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2010 04:01 PM
Could put the log?
Maybe the custom model was dont update correctly in Alfresco.
Maybe the custom model was dont update correctly in Alfresco.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2010 06:52 AM
hi
while creating your own custom model then creating each file is important.
you have given your model name as <model name="my:mynewmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
but the model name should also mentioned in that model file it is very necessary.so it is good to create custom model with the help of alfresco sdk and eclipse.after creating your custom model deploy that.please refer jeff potts book for further information.
while creating your own custom model then creating each file is important.
you have given your model name as <model name="my:mynewmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
but the model name should also mentioned in that model file it is very necessary.so it is good to create custom model with the help of alfresco sdk and eclipse.after creating your custom model deploy that.please refer jeff potts book for further information.
