AnsweredAssumed Answered

Metadata not showing in properties

Question asked by mskarica on Sep 28, 2007
Latest reply on Oct 1, 2007 by dhalupa
Hi.  I created a new model which defines an aspect, which is intended to add one metadata field to any content added to alfresco, but the metadata field does not show anywhere (or I just can't find it).

Here are the steps I took:
1. Created the new model
2. Registered the model with the repository by adding it to core-services-context.xml
3. Added an entry to web-client-config-properties.xml so the metadata shows in the web client
4. Restarted the server, everything parsed fine.

Am I missing any steps?  What I want to happen is when somebody "Adds Content", I want the new metadata field to show as one of the fields in the properties…but it isn't.

Here is my model:
<?xml version="1.0" encoding="UTF-8"?>

<model name="dr:contentmodel" xmlns="">
   <description>My Model</description>
      <import uri="" prefix="d"/>
      <import uri="" prefix="cm"/>
      <namespace uri="dr.doh.model" prefix="dr"/>

      <aspect name="dr:drRecovery">
         <title>Disaster Recovery</title>
            <property name="dr:restoreOrder">
               <title>Disaster Recovery Level</title>
               <description>Importance order in which a document should be recovered in case of disaster</description>
Here's what I added to core-services-context.xml (the 2nd entry)
 <bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
        <property name="models">
And here's the entry I put into the web-client-config-properties.xml file:
<config evaluator="aspect-name" condition="dr:drRecovery">
       <show-property name="dr:restoreOrder"/>

Thanks in advance for any help.