cancel
Showing results for 
Search instead for 
Did you mean: 

How to display content model in Alfresco Share

thirunavukkaras
Champ in-the-making
Champ in-the-making
Folks,
I am using ALfresco community edition 3.3 bundled with tomcat.

I have create a new custom content model and trying to display it's metadata in create content page under Document Library in Alfresco Share.

What are the files I need to configure it.

I have added the below code snippet in share-form-config.xml under C:\Alfresco\tomcat\webapps\share\WEB-INF\classes\alfresco directory.

Below is the code snippet:
<config evaluator="node-type" condition="cm:content">
      <forms>
         <!– Default form configuration for the cm:content type –>
         <form>
            <field-visibility>
         <show id="cm:name" force="true"/>
             <show id="alf:name" force="true"/>            </field-visibility>
            <appearance>
          <field id="cm:name">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
         <field id="alf:name">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>


Please do suggest me the solution..Thanks in Advance
3 REPLIES 3

mikeh
Star Contributor
Star Contributor
Create content uses the model-type form, rather than the node-type.

Thanks,
Mike

thirunavukkaras
Champ in-the-making
Champ in-the-making
Create content uses the model-type form, rather than the node-type.

Thanks,
Mike

Hello Mike,
Thanks for your suggestion.
I have tested it adding to model-type as well.It's not working.Is there anything else that I need to configure it?Please help me(I am one week old to Alfresco).
Thanks,Thiru

mikeh
Star Contributor
Star Contributor
Did you also add a new config section for your custom type? The one you quoted is for "cm:content".

Thanks,
Mike