06-09-2018 03:17 AM
06-10-2018 11:17 AM
There are few things which needs to be considered, which you need to understand.
<config > Element
There are two attributed in config element.
First is evaluator.If eveluator attribute is set to model-type, this means particular form configured inside this configuration will be opened when the type of object is created.Which mean form is opened in create mode(There is attribute called form.mode which should be create)
Second is condition, which is used for identification of type or object which is defined inside the content model.
There is one more form which can be configured by giving id in the <form> tag.If you give doclib-simple-metadata,then it will open that form in edit properties dialogue.
How to create custom form field in share
While creating custom form control,Inside the ftl file, You need to define an if..else condition for rendering the field in view mode and rendering it in edit mode.If you refer existing textfield.ftl or any other control , inside that there are sections for rendering field in view mode which is your property pane and edit mode, which is edit properties form.
In ftl this can be implemented like below
<#if form.mode == "view">
//Code for viewing field value
<#else>
//Code for editing field value
</#if>
06-09-2018 04:44 AM
Deleted.
06-10-2018 11:17 AM
There are few things which needs to be considered, which you need to understand.
<config > Element
There are two attributed in config element.
First is evaluator.If eveluator attribute is set to model-type, this means particular form configured inside this configuration will be opened when the type of object is created.Which mean form is opened in create mode(There is attribute called form.mode which should be create)
Second is condition, which is used for identification of type or object which is defined inside the content model.
There is one more form which can be configured by giving id in the <form> tag.If you give doclib-simple-metadata,then it will open that form in edit properties dialogue.
How to create custom form field in share
While creating custom form control,Inside the ftl file, You need to define an if..else condition for rendering the field in view mode and rendering it in edit mode.If you refer existing textfield.ftl or any other control , inside that there are sections for rendering field in view mode which is your property pane and edit mode, which is edit properties form.
In ftl this can be implemented like below
<#if form.mode == "view">
//Code for viewing field value
<#else>
//Code for editing field value
</#if>
Explore our Alfresco products with the links below. Use labels to filter content by product module.