---
title: "site data processor"
manual: "TypoScript Explained"
version: "main"
permalink: "https://docs.typo3.org/permalink/t3tsref:siteprocessor@main"
source: "DataProcessing/SiteProcessor.rst"
rendered: "2026-09-19T06:55:14+00:00"
---

# `site` data processor {#siteprocessor}

The `\TYPO3\CMS\Frontend\DataProcessing\SiteProcessor`,
alias `site`, fetches data from the [site configuration](https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/SiteHandling/Index.html#sitehandling).

**Table of contents**

-   [Options](https://docs.typo3.org/permalink/t3tsref:options@main)
-   [Example: Output some data from the site configuration](https://docs.typo3.org/permalink/t3tsref:example-output-some-data-from-the-site-configuration@main)

## Options {#siteprocessor-options}

-   **as**

    -   *Type:* [string](https://docs.typo3.org/permalink/t3tsref:data-type-string@main)
    -   *Required:* false
    -   *Default:* "site"

    The variable name to be used in the Fluid template.

## Example: Output some data from the site configuration {#siteprocessor-examples}

Please see also [About the examples](https://docs.typo3.org/permalink/t3tsref:dataprocessing-about-examples@main).

**TypoScript**

Using the `SiteProcessor` the
following scenario is possible:

**EXT:examples/Configuration/TypoScript/DataProcessors/Processors/SiteProcessor.typoscript**

```typoscript
tt_content {
  examples_dataprocsite =< lib.contentElement
  examples_dataprocsite {
    templateName = DataProcSite
    dataProcessing.10 = site
    dataProcessing.10 {
      as = site
    }
  }
}

```

**The Fluid template**

In the Fluid template the properties of the site configuration can be accessed:

**EXT:examples/Resources/Private/Templates/ContentElements/DataProcSite.fluid.html**

```html
<html data-namespace-typo3-fluid="true" xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers">
  <h2>Data in variable site</h2>
  <f:debug inline="true">{site}</f:debug>

  <h2>Output</h2>

  <p>Base url: <f:link.page pageUid="{site.rootPageId}">{site.configuration.base}</f:link.page></p>

</html>

```

**Output**

The array now contains the information from the site configuration:

![Output of a SiteProcessor, including debug output](../Images/ManualScreenshots/DataProcessing/SiteProcessor.png)
