AnsweredAssumed Answered

Custom content model not available in Share

Question asked by willisdl on Sep 9, 2013
Latest reply on Sep 9, 2013 by abarisone
I've created a custom content model for Alfresco Community 4.2.c, but for some reason I can't make it available in Alfresco Share.  I followed the steps in Jeff Potts <a href="">article</a> and created a model (NGA_pub.xml), context file (NGA_pub-model-context.xml), and a share-config-custom.xml and placed them all the the alfresco/extension folder in the tomcat installation.  But when I try to create new content or upload content, the new type does not appear at all.  Also, I cannot create generic content and then change the type to the custom type (the custom type does not appear in the menu again).  Am I missing a step somewhere?  Thanks.


Here's my code:


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

<!– Definition of new Model –>
<model name="publication:publicationdatamodel" xmlns="">

   <!– Optional meta-data about the model –>  
   <description>Publication Content</description>

   <!– Imports are required to allow references to definitions in other models –>  
        <!– Import Alfresco Dictionary Definitions –>
      <import uri="" prefix="d"/>
      <!– Import Alfresco Content Domain Model Definitions –>
      <import uri="" prefix="cm"/>

   <!– Introduction of new namespaces defined by this model –>
      <namespace uri="" prefix="publication"/>
      <!– Definition of new Content Type –>

     <type name="publication:publication">
            <property name="publication:pub_number">
         <property name="publication:pub_title">
         <property name="publication:pub_type">
         <property name="publication:file_path">
         <property name="publication:seq_file_path">



Here's my NGA_pub-model-context.xml:

<?xml version='1.0' encoding='UTF-8'?>
    <!– Registration of new models –>   
    <bean id="NGA_pub.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
        <property name="models">

And here's my share-config-custom.xml:

   <!– Document Library config section –>
   <config evaluator="string-compare" condition="DocumentLibrary">
         <type name="cm:content">
            <subtype name="publication:publication" />
         <type name="publication:publication" />