# Hierarchy Template

By default, Databrain creates the hierarchy based on namespaces, types and inherited types.\
But it is also possible to override this by creating a custom hierarchy template for your Databrain library.

## Create new hierarchy template

1. Open the Databrain editor and go to the **settings**.
2. Under hierarchy, hierarchy template, select: **Create new template**.

<figure><img src="https://2348672745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIoqF5QAgQsqxrjmTIKpE%2Fuploads%2FXrzoh0n4JMGXLmafOzWQ%2FhierarchyTemplateSettings.png?alt=media&#x26;token=ee262373-2d6b-43f5-b35a-4ea8b4bc7267" alt=""><figcaption></figcaption></figure>

3. Choose the destination folder. A new template has been created.
4. You can now select the newly created template file and add groups and sub-types as you like.
5. Make sure to click on **reload** to update the editor hierarchy.

<div align="left"><figure><img src="https://2348672745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIoqF5QAgQsqxrjmTIKpE%2Fuploads%2FSzI4dAyUmUAkEP27YpU5%2FhierarchyTemplate.png?alt=media&#x26;token=2f67ffe7-e188-4dc5-9432-ffd277defc85" alt=""><figcaption><p>Custom hierarchy template</p></figcaption></figure></div>

<div align="left"><figure><img src="https://2348672745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIoqF5QAgQsqxrjmTIKpE%2Fuploads%2Fa7QMkEOJRt7c48e8RINc%2FcustomHierarchy.png?alt=media&#x26;token=b1970a54-4c7c-453d-837b-10711902c21b" alt=""><figcaption><p>Custom hierarchy from template</p></figcaption></figure></div>
