cancel
Showing results for 
Search instead for 
Did you mean: 

How to add a check box to custom models in Alfresco Community 5.2

anuradha1
Star Contributor
Star Contributor

Hi,

I have created a custom model using model manager. But i have a requirement to add a multiple selection property (check box) to the property sheet. But i couldn't able to find any way to add check box to the custom model.

Can anyone suggest me a way to handle this?

3 REPLIES 3

anuradha1
Star Contributor
Star Contributor

There is a selectmany.ftl file available on the path -->

/opt/alfresco-community1/tomcat/webapps/awe/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/form/controls

But i can't find a way to add check box.

Ddo i need separate values using " , " or " | "???

i have tried it using " ," , but it is not return the expected output for me.

you can use checkbox.ftl.Below is path for same.

org\alfresco\components\form\controls\checkbox.ftl

cesarista
World-Class Innovator
World-Class Innovator

Hi:

You may use many of the ftl components provided by Alfresco, but inside the Model Manager this is somehow constrained. Maybe you can check the following tutorial for creating and deploying custom (bootstrap) content models. Your question refers to share form configuration of the content model. 

alfresco-developer-series/tutorial.md at master · jpotts/alfresco-developer-series · GitHub 

Regards.

--C.