cancel
Showing results for 
Search instead for 
Did you mean: 

Adding custom property in Create Content dialog

jeyaa
Champ in-the-making
Champ in-the-making
Hi,

I have a type named mytype and the mandatory aspect is myaspect under this I have added a propery called "comment".

Now If I am creating the content I should ask the user to give comments. So I need the create content dialog to be customized such a way that it will ask the user to give their comments. For that I need to add this property in that.

Could anyone pls lemme know how to add the custom property into the Create Content dialog
property called my:comment

regards,
Jeya
2 REPLIES 2

amitabhandari1
Champ in-the-making
Champ in-the-making
Hi Jeyaa,

Did you add the custom content type in content-wizards section within web-client-config-custom.xml . To Display the required  properties, use replace="true"  . Below is the small code snippet
How to add custom content type :
<config evaluator="string-compare" condition="Content Wizards"
      replace="false">
      <content-types>
         <type name="kgk:contract" />
      </content-types>
   </config>

How to display properties in Alfresco explorer :

<config evaluator="node-type" condition="kgk:contract" replace="true">
      <property-sheet>
         <show-property name="author" display-label-id="author"
                        ignore-if-missing="false" show-in-edit-mode="false"/>
         <show-property name="description" display-label="Description" />
         <separator name="sep"/>
         <separator name="sep 1"
            display-label="Contract Information"
            component-generator="HeaderSeparatorGenerator" />
         <show-property name="kgk:contract_id" display-label="HCP ID"   />
         <separator name="sep 2"/>
         <show-association name="kgk:contractList" />
              </property-sheet>
</config>

When you are creating content with custom content type , select the check box  for Modify properties . You will be able to see your custom property also.

Thanks,
Amita Bhandari
Cignex Technologies India Pvt Ltd

jeyaa
Champ in-the-making
Champ in-the-making
Thanks amita. I will try this out and let you know. Once again thanks.


Regards,
Jeya