---
title: "Extend TypoScript"
manual: "Content Blocks"
version: "main"
permalink: "https://docs.typo3.org/permalink/friendsoftypo3/content-blocks:cb-extendtyposcript@main"
source: "Guides/ExtendContentBlockTypoScript/Index.rst"
rendered: "2026-09-22T14:15:39+00:00"
---

# Extend TypoScript {#cb-extendtyposcript}

Content Blocks generate a `FLUIDTEMPLATE` [TypoScript](https://docs.typo3.org/m/typo3/reference-typoscript/14.3/en-us/ContentObjects/Fluidtemplate/Index.html#cobj-template)
object for each Content Element. This TypoScript can be extended or overridden
as needed.

## How to extend or override Content Blocks TypoScript {#how-to-extend-or-override-content-blocks-typoscript}

### The basis for each Content Element {#the-basis-for-each-content-element}

Every Content Element which is generated by Content Blocks inherits this
TypoScript:

```typoscript
lib.contentBlock = FLUIDTEMPLATE
lib.contentBlock {
    dataProcessing {
        10 = content-blocks
    }
}
```

### Finding the right TypoScript object {#finding-the-right-typoscript-object}

In the TypoScript backend module in the submodule "Active TypoScript", formerly
known as "TypoScript Object Browser", the Content Elements created by Content
Blocks can be found as usual in the section `tt_content`.

The name corresponds to the [typeName](https://docs.typo3.org/permalink/friendsoftypo3/content-blocks:confval-content-element-typename@main)
defined in config.yaml.

Example:

```typoscript
tt_content {
    myvendor_mycontentblockname {
        file = EXT:site_package/ContentBlocks/ContentElements/content-element-name/templates/frontend.fluid.html
        layoutRootPaths {
            20 = EXT:site_package/ContentBlocks/ContentElements/content-element-name/templates/layouts/
        }
        partialRootPaths {
            20 = EXT:site_package/ContentBlocks/ContentElements/content-element-name/templates/partials/
        }
    }
}
```

This TypoScript object has all the properties that [FLUIDTEMPLATE](https://docs.typo3.org/m/typo3/reference-typoscript/14.3/en-us/ContentObjects/Fluidtemplate/Index.html#cobj-fluidtemplate-properties)
offers.

### Extend every Content Block {#extend-every-content-block}

**EXT:site_package/Configuration/TypoScript/setup.typoscript**

```typoscript
lib.contentBlock {
    settings {
        defaultHeaderType = {$styles.content.defaultHeaderType}
    }
    variables {
        demo = TEXT
        demo {
            value = some text
        }
    }
    dataProcessing {
        200 = menu
        200 {
          special = rootline
          as = breadcrumb
        }
    }
}
```

### Extending a specific Content Block {#extending-a-specific-content-block}

**EXT:site_package/Configuration/TypoScript/setup.typoscript**

```typoscript
tt_content.myvendor_mycontentblockname {
    settings {
        defaultHeaderType = {$styles.content.defaultHeaderType}
    }
    variables {
        demo = TEXT
        demo {
            value = some text
        }
    }
    dataProcessing {
        200 = menu
        200 {
          special = rootline
          as = breadcrumb
        }
    }
}
```

See also:

-   [Shared Partials](https://docs.typo3.org/permalink/friendsoftypo3/content-blocks:cb-extension-partials@main)
-   [Fluid Styled Content integration](https://docs.typo3.org/permalink/friendsoftypo3/content-blocks:fsc-guide@main)
