Deleted.
Solved! Go to Solution.
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>
Deleted.
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>
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.