# Manage Template Nodes

After applying the template, the template nodes can be edited, copied, or deleted by clicking on the **Manage Template Nodes** icon <img src="/files/MRwCHkCtmjOOlYgF31Vv" alt="" data-size="line"> as shown below.&#x20;

<figure><img src="/files/nemMgvrVl3ZjJO51ozpL" alt=""><figcaption><p><strong>Click</strong> '<strong>Manage Templates' icon</strong></p></figcaption></figure>

The 'Manage Template Nodes' pop-up shows all the templated nodes used in the model, including their name, whether they have replaced the nodes or were added as new nodes, and a list of actions to select from.

The number on the icon indicates the total number of templates applied in the model. In the example below, there are two templates applied to the model - one to replace the nodes and one to add new nodes.

<figure><img src="/files/ytlklMXln7TXMDiLQ7lf" alt=""><figcaption><p><strong>Manage Template Nodes</strong></p></figcaption></figure>

#### Note:

Another way to open the datasource node editor and edit the templates is to use the shortcut icon near the node name.

<figure><img src="/files/MddPUNPxARlyaCtS0zyN" alt=""><figcaption><p><strong>Click To Open the DataSource Node Editor</strong></p></figcaption></figure>

The following actions are possible through the DataSource Node Editor window.

### Add/Edit/Delete Template Rules

1. Add a new template to the model by clicking **Add Rule** to configure that template into the model.&#x20;

<figure><img src="/files/onU6czSruyF42qMisV13" alt="" width="563"><figcaption><p><strong>Add a new template rule</strong></p></figcaption></figure>

2. Edit the applied templates.

* You can change the template using the 'Select Template' dropdown.
* To edit the level at which the template is applied, click on the 'Select Level' dropdown.
* Templates can be applied to all the nodes or specific nodes using the filter.&#x20;

<figure><img src="/files/KoC10W8VVlv9mcjHPREh" alt="" width="563"><figcaption><p><strong>Edit the applied template</strong></p></figcaption></figure>

3. Re-apply to different nodes using filter conditions.

* &#x20;Edit the Category and Member fields to change the filter conditions.

<figure><img src="/files/Fxqe5v0rbRgr78ced8JZ" alt="" width="563"><figcaption><p><strong>Changing filter conditions</strong></p></figcaption></figure>

* Add more than one filter condition and combine them using AND/OR operators.

<figure><img src="/files/LJAsReyVecPmhL1OtyvZ" alt="" width="563"><figcaption><p><strong>Add more than one condition</strong></p></figcaption></figure>

4. You can delete a specific template by clicking on **Delete** beside that template rule.

<figure><img src="/files/UReMgk2DS4U5AXldTpch" alt=""><figcaption><p><strong>Delete rule</strong></p></figcaption></figure>

{% hint style="info" %}
In case of multiple template rules applied to the model, if they overlap, the latest added rule overrides the previous rules.
{% endhint %}

### Remove Template from the model

To remove the template completely and revert the model to its initial state, click on the bin icon that appears next to the applied template.

<figure><img src="/files/TALEPMHbxUJYmg6d7t7c" alt="" width="563"><figcaption><p><strong>Remove Template</strong></p></figcaption></figure>

{% hint style="info" %}
This option removes **only the template references from the model** and does not delete the actual template that had been created.

The template would still be available in the **Templates** window.

Alternatively, to delete the actual template, it is mandatory to remove its references from the model first, by using [this option](#remove-template-from-the-model).&#x20;
{% endhint %}

### Copy Template Rules to Dynamic Children

In case of [dynamic children](/model/model-editor/node-operations.md#data) being added to the model (adding new nodes from data), you can apply the existing template rules to them.

Click on the **Copy rule** icon beside the template that you want to copy.

<figure><img src="/files/xjWBPI64mcmjx6fYiC6t" alt="" width="563"><figcaption><p><strong>Copy Rule</strong></p></figcaption></figure>

In the pop-up that opens, choose the dynamic nodes to which the existing template rules are to be applied. Click **Apply.**

<figure><img src="/files/gDjGf8AR5ODUqnnDPB5I" alt=""><figcaption><p><strong>Copy Template Rules</strong></p></figcaption></figure>

This applies the templates to the newly added dynamic child nodes.

You can also click on the 'data source node editor' icon beside the node to configure a template for it manually.

<figure><img src="/files/xJ2cQr9eKZa7olfhAgvh" alt=""><figcaption><p><strong>Configuring a template</strong></p></figcaption></figure>


---

# 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.valq.com/model/templates/manage-template-nodes.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.
