cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a Checkbox?

trandz
Champ in-the-making
Champ in-the-making
Hi!

I want to create a checkbox-field for each uploaded document. This Checkbox should be displayed on the properties-sheet or under the documents beneath the icons (inline-edit, download,…).
Does anyone have an idea?

Regards
trandz
2 REPLIES 2

trandz
Champ in-the-making
Champ in-the-making
If this is not clear for someone. Here my steps so far:

I've implemented an icon in that menu i've mentioned ("document_browse"), like that following:

<config>
   <actions>
      <!– Launch Add Aspect Dialog –>
      <action id="add_aspect">
         <label>Add Aspect</label>
         <image>/images/icons/add.gif</image>
         <action>dialog:addAspect</action>
      </action>
        
      <!– Add action to more actions menu for each space –>
      <action-group id="space_browse_menu">
         <action idref="add_aspect" />
      </action-group>
   </actions>
</config>

-> See on http://wiki.alfresco.com/wiki/Web_Client_Customisation_FAQ (Adding Custom Menu Item)

But instead that Image, i need a checkbox. How can i create that checkbox there?

Regards,
trandz

romschn
Star Collaborator
Star Collaborator
If you want to display the checkbox on view details screen of the content, It is pretty simpler.

Follow below steps :
1. Create your custom aspect which defines a boolean property for a checkbox.
2. Modify web-client-config-custom.xml and specify show-property as true.
3. Create a content rule on space to add your aspect whenever a new content has been uploaded to the space.
    Your rule condition would be - Item is a subtype of 'Content
    Your rule action would be - Add aspect 'Your custom aspect'

Whenever, a new content will be added, the mentioned aspect would be applied and will show the checkbox when you click on view details for that content.

Hope this helps.

Thanks,