---
title: "Changing & editing templates"
manual: "maps2 (Maps2)"
version: "13.1"
source: "AdministratorManual/Template/Start/Index.rst"
rendered: "2026-10-01T12:50:05+00:00"
---

# Changing & editing templates {#editing-templates}

EXT:maps2 is using fluid as template engine. If you are know how to manage fluid
templates, you can skip this section.

## Changing paths of the template {#editing-templates-changing-paths}

You should never edit the original templates of an extension as those changes
will vanish if you upgrade the extension. As any extbase based extension, you
can find the templates in the directory `Resources/Private/`.

If you want to change a template, copy the desired files to the directory where
you store the templates. This should be a directory in your SitePackage
extension. Multiple fallbacks can be defined which makes it far easier to
customize the templates.

```typoscript
plugin.tx_maps2 {
  view {
    templateRootPaths >
    templateRootPaths {
      0 = EXT:maps2/Resources/Private/Templates/
      1 = EXT:site_package/Resources/Private/Extensions/Maps2/Templates/
    }
    partialRootPaths >
    partialRootPaths {
      0 = EXT:maps2/Resources/Private/Partials/
      1 = EXT:site_package/Resources/Private/Extensions/Maps2/Partials/
    }
    layoutRootPaths >
    layoutRootPaths {
      0 = EXT:maps2/Resources/Private/Layouts/
      1 = EXT:site_package/Resources/Private/Extensions/Maps2/Templates/Layouts/
    }
  }
}
```

### Change the templates using TypoScript constants {#editing-templates-using-of-typoscript-constants}

You can use the following TypoScript in the  **constants** to change
the paths

```typoscript
plugin.tx_maps2 {
  view {
    templateRootPath = EXT:site_package/Resources/Private/Extensions/Maps2/Templates/
    partialRootPath = EXT:site_package/Resources/Private/Extensions/Maps2/Partials/
    layoutRootPath = EXT:site_package/Resources/Private/Extensions/Maps2/Layouts/
  }
}
```
