AnsweredAssumed Answered

Problem with new content type/aspect

Question asked by sweep on Oct 11, 2006
Latest reply on Oct 11, 2006 by gavinc
Hi all,
I'm trying to add 3 new meta when I add a document using the examples i found in the wiki.
I was not sure if I had to use an aspect or a type, so I added a custom type and the example aspect.
I registered the Model with the Repository. I added the aspect and the type to web_config_properties.xml at the very bottom of the file.

I received no error (the model is OK) but no new field appeared in the edit property view.

I tried then to add the content type to the select in the wizard (as exposed in the web client customization wiki) and the content type is correctly displayed in the select.

I have some question:
1) what do I have to use a content type or an aspect?
2) Is there an error in my files or my approach is completely wrong?

Thank you for help.

This is my examplemodel:

<?xml version='1.0' encoding='UTF-8'?>
<model name="my:mynewmodel" xmlns="">
   <description>Alfresco Content Model</description>

         <!– Import Alfresco Dictionary Definitions –>
         <import uri="" prefix="d"/>
         <!– Import Alfresco Content Domain Model Definitions –>
         <import uri="" prefix="cm"/>

      <!– Define a Namespace for my new definitions –>
      <namespace uri="" prefix="my"/>

   <!– Type and Aspect definitions go here –>
      <type name="my:iop">
         <title>IO Procedure</title>
            <property name="my:productName">
            <property name="my:productCode">
            <property name="my:productBarcode">
      <aspect name="my:imageClassification">
         <title>Image Classfication</title>
            <property name="my:width">
            <property name="my:height">
            <property name="my:resolution">

And this is what I added to the web-client-config-properties.xml file.

<config evaluator="aspect-name" condition="my:imageClassification">
         <show-property name="my:width"/>
         <show-property name="my:height"/>
         <show-property name="my:resolution"/>
   <config evaluator="node-type" condition="my:iop">
         <show-property name="productName" />
          <show-property name="productCode" />
         <show-property name="productBarcode"/>