Changing how Share renders forms
The majority of the forms configuration are located in the share-config-custom.xml file. Alfresco provides form controls for most of the data types, but sometimes you want to customize it. A form control is implemented as a Freemarker template.
Let's look at a couple of basic examples that can at least get you pointed in the right direction. Suppose that SomeCo's Operations department wants to track status reports in Alfresco. Status reports will be written as documents and uploaded to the Operations space. Two properties will help the Operations team get a feel for the project's status: statusSummary
will be a text property meant to capture a couple of sentences summarizing the status report, and statusIndicator
will be a single-value select box consisting of color-coded statuses that are Red
, Yellow
, or Green
.
Rather than creating a "status report" type, you will model the two status-related properties as part of a "status-able" aspect that will be applied...