---
title: "LOAD_REGISTER"
manual: "TypoScript Explained"
version: "main"
permalink: "https://docs.typo3.org/permalink/t3tsref:cobj-load-register@main"
source: "ContentObjects/LoadRegister/Index.rst"
rendered: "2026-09-19T06:55:14+00:00"
---

# LOAD_REGISTER {#cobj-load-register}

The register is working like a stack: With each call new content can be
put on top of the stack. [RESTORE_REGISTER](https://docs.typo3.org/permalink/t3tsref:cobj-restore-register@main)
can be used to remove the element at the topmost position again.
The registers are processed in the reverse order. The register with the highest number
will be processed as the first, and the register with the lowest number will be processed
as the last one. This corresponds to the stack principle Last In – First Out (LIFO).

With the advent of Fluid templating, registers are used less often than
they used to be. In the Core they are not being used anymore.

-   [Properties](https://docs.typo3.org/permalink/t3tsref:properties@main)
-   [Example:](https://docs.typo3.org/permalink/t3tsref:example@main)

## Properties {#cobj-load-register-properties}

-   **array of field names**

    -   *Type:* [string](https://docs.typo3.org/permalink/t3tsref:data-type-string@main) / [stdWrap](https://docs.typo3.org/permalink/t3tsref:stdwrap@main)

    **Example:**

    This sets `contentWidth`, `label` and
    `head`.

    **EXT:site_package/Configuration/Sets/Main/setup.typoscript**

    ```typoscript
    page.27 = LOAD_REGISTER
    page.27 {
      contentWidth = 500

      label.field = header

      head = some text
      head.wrap = <b> | </b>
    }

    ```

## Example: {#cobj-load-register-examples}

**EXT:site_package/Configuration/Sets/Main/setup.typoscript**

```typoscript
1 = LOAD_REGISTER
1.param.cObject = TEXT
1.param.cObject.stdWrap.data = GP:the_id
# To avoid SQL injections we use intval - so the parameter
# will always be an integer.
1.param.cObject.stdWrap.intval = 1

10 = CONTENT
10.table = tx_my_table
10.select {
  pidInList = this
  orderBy = sorting
  # Now we use the registered parameter
  where = uid = {REGISTER:param}
  where.insertData = 1
}
10.renderObj = COA
10.renderObj {
  10 = TEXT
  10.stdWrap.field = tx_my_text_field
}

```

In this example we first load a special value, which is given as a
GET/POST parameter, into the register. Then we use a
[CONTENT object](https://docs.typo3.org/permalink/t3tsref:cobj-content@main) to render content based on this
value. This CONTENT object loads data from a table `tx_my_table` and looks up
the entry using the value from the register as a unique id. The field `tx_my_text_field`
of this record will be rendered as output.

For an example in combination with [RESTORE_REGISTER](https://docs.typo3.org/permalink/t3tsref:cobj-restore-register@main)
see the [example on the page RESTORE_REGISTER](https://docs.typo3.org/permalink/t3tsref:cobj-restore-register-examples@main).
