When a form author creates an adaptive form using a template, the form author can see and use specific components based on template policy. You can specify a template content policy that lets you choose a group of components that the form author sees at the time of form authoring.
When you create a template, it is created under
/conf in the content repository. Based on the folders you have created in the
/conf directory, path to your template is:
Perform the following steps to show the components in the sidebar based on the content policy of a template:
Open CRXDE lite.
In CRXDE, navigate to the folder in which the template is created.
In CRXDE, navigate to:
To select a group of components, a new content policy is required. To create a new policy, copy-paste the default policy, and rename it.
Path to default content policy is:
gridFluidLayout folder, copy-paste the default policy and rename it. For example,
Select the new policy you create, and select the components property in the right-side panel with type
When you select and open the components property, you see the Edit components dialog. The Edit components dialog lets you add or remove component groups using the + and - buttons. You can add component group that includes components that form you want authors to use.
After you add a component group, click OK to update the list, and then click Save All above CRXDE address bar and refresh.
In the template, change the content policy from default to the new policy you created. (
myPolicy in this example.)
To change the policy, in CRXDE, navigate to
cq:policy property, change
default to the new policy name (
When you author a form you create using the template, you can see the added components in sidebar.