# Editing templates

You can see a full list of available templates by browsing the directory TreeView. When you select a template, XOOPS will open it in an editor where you can edit it.

While editing templates you must enable a preference that automatically updates module template .html files if there are newer files under the themes/your theme/templates directory for the current theme (System Module -> Preferences -> General Settings -> Update module template .html files from themes/your theme/templates directory? -> ‘Yes’). This should be turned off once the site goes public.

If you accidentally mess up a template don’t forget that you can retrieve a ‘good’ copy from the default template set. If you are working with non-standard templates it may be a good idea to save a copy to disk before you start modifying them. Let’s modify one of the templates coming with the XOOPS Poll module. To do so, let’s select the theme we want to modify the templates for (here: Zetagenesis):

![img\_105.jpg](/files/-LD6N-fqB5-ZBFpUSk1Y)

As next, let’s select few of the XOOPS Poll templates:

![img\_104.jpg](/files/-LD6N-fs0qVtZGcENm__)

When we click on submit, the original templates from the module are copied to the theme directory:

![img\_104.jpg](/files/-LD6N-fuv9Ug9SabQk1H)

Now selecting in the TreeView the Zetagenesis theme and XoopsPool in the modules directory, we can see the templates which can then be directly modified in an editor:

![img\_104.jpg](/files/-LD6N-fwSt3CY3Jmu7Do)

***Figure 22 Editing Template File***

The ‘submit’ button will save any changes you have made to the template.


---

# 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://xoops.gitbook.io/xoops-operations-guide/the-admin-interface/templates/editing-templates.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.
