Configuring Custom Types
If you want to add your own properties to contents and folders, ADx has the flexibility to do it. The solution are custom content and folder types. This page explains how to configure such types on a repository. In this tutorial, we assume that the users need two extra properties on contents - a hasBeenReviewed check box and reviewComments text field.
Configuration is done on repository level.
Log in to ADx. Go to the Administrator page:
Highlight your repository and execute the Ensure Models action. This will create custom data and service models on your repository, which you will later extend with new data types.
Open the repository you want to customize. Highlight the Content Configuration option and open the Data Model from the Modeling menu:
Add New Data Type to the model:
Set the appropriate Kind parameter (content in our case, but you can also create custom folder types):
Add the properties for your custom type:
Go back to the main repositories view and do the following:
- Deactivate your repository.
- Synchronize your repository.
- Activate the repository again.
You're done! You should now be able to add custom documents in your repository. Proceed to testing to see how.
We're going to test the configuration of our custom content type and its properties, and verify their availability in the repository.
Open the repository you just configured.
Add a content. You should see your custom type in the selection list:
Check the content's details. Your properties should be available in the CUSTOM section:
REST endpoints related to contents and folders now have the entryType parameter so that you can work with custom types: