AnsweredAssumed Answered

Wheres the new Content Type ?

Question asked by paulkeogh on Sep 26, 2005
Latest reply on Sep 27, 2005 by paulkeogh
Following the data dictionary guide, I added the following model;

<model name="mc:contentmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">

   <description>Mobile Content Model</description>
   <author>Paul Keogh</author>
   <published>2005-09-26</published>
   <version>0.1</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.alfresco.org/model/mobilecontent/1.0" prefix="mc"/>
   </namespaces>

   <types>
      <type name="mc:ringtone">
         <title>Ringtone</title>
         <parent>cm:cmobject</parent>
         <properties>
            <property name="mc:ringtoneType">
               <type>d:text</type>
            </property>
         </properties>
      </type>
   </types>

       ….

This was loaded up correctly (I think - how do I verify that?)

I then attempted to edit web-client-config.xml by adding;

   <!–  Mobile content additions –>
  
   <config evaluator="node-type" condition="ringtone">
      <property-sheet>
         <show-property name="name" displayLabel="File Name" />
         <show-property name="mimetype" displayLabel="Content Type" converter="org.alfresco.faces.MimeTypeConverter" />
         <show-property name="title" displayLabel="Title" />
         <show-property name="description" displayLabel="Description" />
         <show-property name="size" displayLabel="Size" converter="org.alfresco.faces.ByteSizeConverter" />
         <show-property name="creator" displayLabel="Author" />
      </property-sheet>
   </config>

I cannot find an explanation of the relationship between this piece of XML and the XML in my new content model. Any pointers ?

Also, when I add a new Content Type, where exactly in the web client should I see it ?

Outcomes