AnsweredAssumed Answered

Unable to view custom content under companyHome in Webclient

Question asked by amit_wmw@yahoo.com on Apr 9, 2009
Latest reply on Jul 31, 2009 by nikes
Hello,

I have created a custom content type Scmodel.xml (C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\extension)as below:

<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>
     
     <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.alfresco.org/model/content1/1.0" prefix="sc"/>

</namespaces>


<types>
<type name="sc:scobject">
         <title>Object</title>
         <parent>sys:base</parent>
      
       
      </type>
     
      <!– Enterprise-wide generic document type –>
   <type name="sc:doc">
      <title>Folder</title>
         <parent>sc:scobject</parent>
         <archive>true</archive>

       <properties>
                 
            <property name="sc:description">
               <type>d:text</type>
            </property>
        

      
            <property name="sc:title">
               <type>d:text</type>
            </property>
         </properties>

         <associations>
            <child-association name="sc:contains">
               <source>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </source>
               <target>
                  <class>sys:base</class>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </target>
               <duplicate>false</duplicate>
            </child-association>
         </associations>
      
        
   </type>
</types>

</model>

And then I have configure Scmodel.xml(my custom content model)  in web-client-config-custom.xml(location: C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\extension) as below; to view my content nodes in Alfresco web client.

<alfresco-config>

   <!– The config below shows how to incorporate the example model–>
   <!– into the web client, for this to work you will need to –>
   <!– rename example-model-context.xml.sample to example-model-context.xml –>
 
 
<config evaluator="string-compare" condition="Content Wizards">
      <content-types>
         <type name="sc:doc" />
      </content-types>
   </config>
   <config evaluator="node-type" condition="sc:doc">
      <property-sheet>
      <show-property name="mimetype" display-label-id="content_type"
                        component-generator="MimeTypeSelectorGenerator" />
         <show-property name="size" display-label-id="size"
                        converter="org.alfresco.faces.ByteSizeConverter"
                        show-in-edit-mode="false" />
         <show-property name="sc:description" />
         <show-property name="sc:title" />
         <show-child-association name="sc:contains" />
      </property-sheet>
   </config>

  
</alfresco-config>

But I am still unable to view my custom content under company home in the web client. Please suggest, what else modifications are required.

Thanks
Amit.

Outcomes