AnsweredAssumed Answered

problem creating custom content model

Question asked by developer.researcher on Dec 20, 2010
Latest reply on Jun 23, 2011 by jmartorell

     I am trying create a custom model for alfresco (community edition 3.3). When I create a custom space (based on cm:folder) works fine but when I create a custom content (based on cm:content) I can not see it (select it) into the content creation wizard. At the time of content creation, the log shows:

17:38:07,220 User:admin WARN  [bean.content.BaseContentWizard] Failed to add 'ccm:mycontent' to the list of content types as the type is not recognised.

     What could be causing this error? How I can fix it? I hope someone can help me

     My configuration files are:

1. customContentModel.xml

<?xml version="1.0" encoding="UTF-8"?>

<model name="ccm:customcontent" xmlns="">

   <description>Custom Content Model</description>  

      <import uri="" prefix="d"/>
      <import uri="" prefix="cm"/>

      <namespace uri="model.customcontent" prefix="ccm"/>

   <type name="ccm:mycontent">
         <property name="ccm:Area">
         <description>Name of Area</description>
         <property name="ccm:Priority">
         <description>Priority of Expedient</description>


2. customContentModel-context.xml

<?xml version='1.0' encoding='UTF-8'?>

    <bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
        <property name="models">

3. web-client-config-custom.xml

   <config evaluator="string-compare" condition="Action Wizards">
         <type name="ccm:mycontent"/>
   <config evaluator="string-compare" condition="Action Wizards">
              <type name="ccm:mycontent"/>
   <config evaluator="string-compare" condition="Content Wizards">     
               <type name="ccm:mycontent" />
   <config evaluator="node-type" condition="ccm:mycontent">
         <show-property name="ccm:Area"/>
         <show-property name="ccm:Priority"/>        


Thanks in advance,