cancel
Showing results for 
Search instead for 
Did you mean: 

not seeing all the content types I expect

robertmarkbram
Champ in-the-making
Champ in-the-making
Hi All,

I am making my way through Jeff Potts' Alfresco Developer Guide and have gotten to the stage where I have seven content types that I should be able to see when creating new content. But I only see two of them. Below is the screen shot showing the two I see.

[img]http://imagefrog.net/out.php/i89544_somecoContentTypes.JPG[/img]

And here is my scModel.xml. There are no errors in the alfresco.log file.

<?xml version="1.0" encoding="UTF-8"?>
<!– Definition of new Model –>
<model name="sc:somecomodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">

   <!– Optional meta-data about the model –>
   <description>Someco Model</description>
   <author>Optaros</author>
   <version>1.0</version>

   <!– Imports are required to allow references to definitions in other models –>
   <imports>
      <!– Import Alfresco Dictionary Definitions –>
      <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" />
      <!– Import Alfresco Content Domain Model Definitions –>
      <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm" />
      <import uri="http://www.alfresco.org/model/system/1.0" prefix="sys" />
   </imports>

   <!– Introduction of new namespaces defined by this model –>
   <namespaces>
      <namespace uri="http://www.someco.com/model/content/1.0" prefix="sc" />
   </namespaces>

   <constraints>
      <constraint name="sc:campaignList" type="LIST">
            <parameter name="allowedValues">
                <list>
                    <value>Application Syndication</value>
               <value>Private Event Retailing</value>
                    <value>Social Shopping</value>
                </list>
            </parameter>
        </constraint>
   </constraints>

   <types>
      <!– Enterprise-wide generic document type –>
      <type name="sc:doc">
         <title>Someco Document</title>
         <parent>cm:content</parent>
         <associations>
            <association name="sc:relatedDocuments">
               <title>Related Documents</title>
               <source>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </source>
               <target>
                  <class>sc:doc</class>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </target>
            </association>
         </associations>
         <mandatory-aspects>
           <aspect>cm:generalclassifiable</aspect>
         </mandatory-aspects>
      </type>
      <type name="sc:marketingDoc">
         <title>Someco Marketing Document</title>
         <parent>sc:doc</parent>
         <properties>
            <property name="sc:campaign">
               <type>d:text</type>
               <multiple>true</multiple>
               <constraints>
                  <constraint ref="sc:campaignList" />
               </constraints>
            </property>
         </properties>
      </type>
      <type name="sc:whitepaper">
         <title>Someco Whitepaper</title>
         <parent>sc:marketingDoc</parent>
      </type>
      <type name="sc:hrDoc">
         <title>Someco HR Document</title>
         <parent>sc:doc</parent>
      </type>
      <type name="sc:salesDoc">
         <title>Someco Sales Document</title>
         <parent>sc:doc</parent>
      </type>
      <type name="sc:opsDoc">
         <title>Someco Operations Document</title>
         <parent>sc:doc</parent>
      </type>
      <type name="sc:legalDoc">
         <title>Someco Legal Document</title>
         <parent>sc:doc</parent>
      </type>
   </types>

   <aspects>
      <aspect name="sc:webable">
         <title>Someco Webable</title>
         <properties>
            <property name="sc:published">
               <type>d:date</type>
            </property>
            <property name="sc:isActive">
               <type>d:boolean</type>
               <default>false</default>
            </property>
         </properties>
      </aspect>
      <aspect name="sc:clientRelated">
         <title>Someco Client Metadata</title>
         <properties>
            <property name="sc:clientName">
               <type>d:text</type>
               <mandatory>true</mandatory>
            </property>
            <property name="sc:projectName">
               <type>d:text</type>
               <mandatory>false</mandatory>
            </property>
         </properties>
      </aspect>
   </aspects>
</model>

Any advice would be most appreciated!

Rob
Smiley Happy
1 REPLY 1

robertmarkbram
Champ in-the-making
Champ in-the-making
Found the answer.. I need to add the content types to web-client-config-custom.xml file:

   <!–  add someco types to add content list –>
   <config evaluator="string-compare" condition="Content Wizards">
      <content-types>
         <type name="sc:doc" />
         <type name="sc:whitepaper" />
         <type name="sc:marketingDoc" />
      </content-types>
   </config>