# Content Tree

The Content Tree helps to navigate a repos content and gives some structure to the backend. It can include [Collections](/concepts-1/collections.md), Folders and Document Links that **can be nested** to reflect a certain logic or structure and help editors to recognize parts of a website or app, or simply provide lists and links for easier content management.

{% hint style="info" %}
Each node in the tree has its own endpoint with a unique URL slug (API-Id) for HTTP calls. However, nesting does not affect the endpoint URL.
{% endhint %}

## Node Types

The following types of tree nodes are available:

### Collections

`Collections` are aggregated lists of `documents` that match a certain definition. For more info, [see the collections page](/concepts-1/collections.md).

![](/files/-LAJZfeJ6tnzJMr_6_5k)

### Document Links

`Document Links` are single `documents` linked in the tree. They may represent a unique or important document, for example a landingpage or an important document that will be constantly changed by editors.

![](/files/-LAJWYKp2iwZci3QnnSR)

### Folders

`Folders` can be used to group collections or document links. By now this is their only function and they have no endpoint, but there are some features planned for the future.

![](/files/-LAJ_Q4xHyZmwf9Jb-BY)

## Nodes

### Adding nodes

To add a node, simply click or drag the corresponding icon above the tree and enter a **name** and `API-Id`. For Document Links you can select the document to be linked from the list on the bottom.

### Editing nodes

**Folders and Document Links** can be edited by right-clicking a node and selecting 'Edit'. This will bring up a dialog in which you can change the name, API-Id or the linked document.

**Collections** have their own configuration page. Right-click a node and select 'Edit' or enter the collection view by left-click and find the 'Configuration'-Button on the top right.

### Removing nodes

You can either right-click a node an select 'Delete', or switch into edit mode to delete a node.

{% hint style="warning" %}
Be careful when deleting a node, this will also delete the URL endpoint!
{% endhint %}

## Document Archive

On the bottom of the Content Tree you will find the  `Document Archive`. It collects all archived `documents`. In the archive you select documents to delete them permanently.

![](/files/-LANiTjmrILG8pCpRWWh)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.comfortable.io/concepts-1/content-tree.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
