logoBack to home screen

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.

On this page

  1. Configuration
  2. Testing
  3. API

Configuration

Configuration is done on repository level.

  1. Log in to ADx. Go to the Administrator page:

  2. 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.

  3. Open the repository you want to customize. Highlight the Content Configuration option and open the Data Model from the Modeling menu:

  4. Add New Data Type to the model:

  5. Set the appropriate Kind parameter (content in our case, but you can also create custom folder types):

  6. Add the properties for your custom type:

  7. Go back to the main repositories view and do the following:

    1. Deactivate your repository.
    2. Synchronize your repository.
    3. Activate the repository again.
  8. You're done! You should now be able to add custom documents in your repository. Proceed to testing to see how.

Testing

We're going to test the configuration of our custom content type and its properties, and verify their availability in the repository.

  1. Open the repository you just configured.

  2. Add a content. You should see your custom type in the selection list:

  3. Check the content's details. Your properties should be available in the CUSTOM section:

API

REST endpoints related to contents and folders now have the entryType parameter so that you can work with custom types: