cancel
Showing results for 
Search instead for 
Did you mean: 

Display custom properties

janig
Champ in-the-making
Champ in-the-making
Hi,

How can I configure Alfresco (ver 3) to display wanted content properties.
For each content in the list of contents I can see next content properties:
Name
Description
Size
Created
Modified
Actions

Thanx,

Jani
2 REPLIES 2

openpj
Elite Collaborator
Elite Collaborator
You can configure this on web-client-config-custom.xml, and you can choose if you want your custom property shown in editor too:

<alfresco-config>
<config evaluator="node-type" condition="cm:content">
      <property-sheet>
         <show-property name="name" show-in-edit-mode="false" />
         <show-property name="mimetype" display-label-id="mimetype"
                        converter="org.alfresco.faces.MimeTypeConverter"
                        show-in-edit-mode="true" />
         <show-property name="title" show-in-edit-mode="true" />
         <show-property name="description" show-in-edit-mode="true" />
         <show-property name="size" display-label-id="size"
                        converter="org.alfresco.faces.ByteSizeConverter"
                        show-in-edit-mode="true" />
        
         <show-property name="cm:myprop"  show-in-edit-mode="true" />
         <show-property name="cm:myprop2"  show-in-edit-mode="true" />
        etc….

      </property-sheet>
   </config>
</alfresco-config>


But you must to add this value parameter on custom-web-client-application-context.xml:

<value>classpath:alfresco/extension/web-client-config-custom.xml</value>
Hope this helps.

janig
Champ in-the-making
Champ in-the-making
Hi,

Thank you for your answer. Now I am able to input custom properties when creating content. When I click on Actions -> View Details the custom properties are shown.
But how can I add custom properties in general item view (list of items (contents) in some space). In this view I can only see default properties: name, description, size, created, modified and actions.


Thank you for your help,

Jani