---
title: "TypoScript"
manual: "Glossary 2"
version: "main"
permalink: "https://docs.typo3.org/permalink/jweiland/glossary2:typoscript@main"
source: "Configuration/TypoScript/Index.rst"
rendered: "2026-11-03T17:28:49+00:00"
---

# TypoScript {#typoscript}

The TypoScript setup of `glossary2` is located below `plugin.tx_glossary2`.
Most values are filled from the
[site settings or TypoScript constants](https://docs.typo3.org/permalink/jweiland/glossary2:site-settings@main). Prefer to
change these settings instead of overriding the TypoScript setup.

## View {#typoscript-view}

-   **view.templateRootPaths**

    -   *Type:* array
    -   *Default:* Value of setting `glossary2.templateRootPath`

    You can override our Templates with your own SitePackage extension. We
    prefer to change the setting [glossary2.templateRootPath](https://docs.typo3.org/permalink/jweiland/glossary2:confval-site-settings-templaterootpath@main).

-   **view.partialRootPaths**

    -   *Type:* array
    -   *Default:* Value of setting `glossary2.partialRootPath`

    You can override our Partials with your own SitePackage extension. We
    prefer to change the setting [glossary2.partialRootPath](https://docs.typo3.org/permalink/jweiland/glossary2:confval-site-settings-partialrootpath@main).

-   **view.layoutRootPaths**

    -   *Type:* array
    -   *Default:* Value of setting `glossary2.layoutRootPath`

    You can override our Layouts with your own SitePackage extension. We
    prefer to change the setting [glossary2.layoutRootPath](https://docs.typo3.org/permalink/jweiland/glossary2:confval-site-settings-layoutrootpath@main).

## Persistence {#typoscript-persistence}

-   **persistence.storagePid**

    -   *Type:* string
    -   *Default:* Value of setting `glossary2.storagePid`

    Set this value to a Storage Folder (PID) where you have stored the
    records. A comma-separated list of folders is possible. We prefer to
    change the setting [glossary2.storagePid](https://docs.typo3.org/permalink/jweiland/glossary2:confval-site-settings-storagepid@main).

    Example: `plugin.tx_glossary2.persistence.storagePid = 21,45,3234`

## Settings {#typoscript-settings}

-   **settings.pidOfDetailPage**

    -   *Type:* int
    -   *Default:* Value of setting `glossary2.pidOfDetailPage`

    Example: `plugin.tx_glossary2.settings.pidOfDetailPage = 84`

    Often it is useful to move the detail view onto a separate page
    for design/layout reasons.

-   **settings.templatePath**

    -   *Type:* string or array
    -   *Default:* empty (Use value of Extension Settings as fallback)

    Example:

    **TypoScript setup**

    ```typoscript
    plugin.tx_glossary2.settings.templatePath = EXT:events2/Resources/Private/Templates/Glossary2.html
    ```

    With this setting you can override the default templatePath of glossary2
    and defined templatePaths coming from foreign extensions. So TypoScript
    settings have highest priority.

    We also have implemented a more complex setting for `templatePath`:

    **TypoScript setup**

    ```typoscript
    plugin.tx_glossary2.settings.templatePath {
      default = EXT:glossary2/Resources/Private/Templates/Glossary2.html
      events2 = EXT:events2/Resources/Private/Templates/Glossary2.html
      yellowpages2 = EXT:yellowpages2/Resources/Private/Templates/Glossary2.html
    }
    ```

    `default` will be used, if no templatePath for a given ExtensionKey was
    found.

-   **settings.glossary.mergeNumbers**

    -   *Type:* bool
    -   *Default:* 1

    Example: `plugin.tx_glossary2.settings.glossary.mergeNumbers = 0`

    Merge record titles starting with numbers to `0-9` in glossary.

-   **settings.glossary.showAllLink**

    -   *Type:* bool
    -   *Default:* 1

    Example: `plugin.tx_glossary2.settings.glossary.showAllLink = 0`

    Prepend an additional button in front of the glossary to show all
    records again.

-   **settings.pageBrowser.itemsPerPage**

    -   *Type:* int
    -   *Default:* Value of setting `glossary2.pageBrowser.itemsPerPage` (`10`)

    Example: `plugin.tx_glossary2.settings.pageBrowser.itemsPerPage = 20`

    Reduce result of records to this value for a page

-   **settings.pageBrowser.class**

    -   *Type:* string
    -   *Default:* `TYPO3CMSCorePaginationSimplePagination`

    Class name of the pagination used in the list view. See
    [Pagination](https://docs.typo3.org/permalink/jweiland/glossary2:pagination@main) for an example how to use another pagination.
