---
title: "ViewHelpers"
manual: "Content Blocks"
version: "main"
permalink: "https://docs.typo3.org/permalink/friendsoftypo3/content-blocks:content-blocks-view-helpers@main"
source: "Templating/ViewHelpers/Index.rst"
rendered: "2026-09-22T14:15:39+00:00"
---

# ViewHelpers {#content-blocks-view-helpers}

Content Blocks ships a small set of Fluid ViewHelpers to solve problems, which
are specific to Content Blocks, like resolving the current Content Block's
assets or language file, and providing backend edit links that play nicely
with the Page Layout module.

All ViewHelpers are available under the `cb` namespace. It is registered
globally, so you don't have to import it manually.

> [!NOTE]
> Even though importing the namespace is not required, IDEs and Fluid
> linters may still expect the `xmlns:cb` declaration on the root
> tag of your template to provide proper autocompletion and validation:
>
> ```html
> <html
>     xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
>     xmlns:cb="http://typo3.org/ns/TYPO3/CMS/ContentBlocks/ViewHelpers"
>     data-namespace-typo3-fluid="true"
> >
> ```

Available ViewHelpers:

-   [cb:assetPath](https://docs.typo3.org/permalink/friendsoftypo3/content-blocks:content-blocks-view-helper-asset-path@main)
-   [cb:languagePath](https://docs.typo3.org/permalink/friendsoftypo3/content-blocks:content-blocks-view-helper-language-path@main)
-   [cb:link.editRecord](https://docs.typo3.org/permalink/friendsoftypo3/content-blocks:content-blocks-view-helper-link-edit-record@main)

**Table of Contents**

-   [cb:assetPath](https://docs.typo3.org/permalink/friendsoftypo3/content-blocks:cb-assetpath@main)
-   [cb:languagePath](https://docs.typo3.org/permalink/friendsoftypo3/content-blocks:cb-languagepath@main)
-   [cb:link.editRecord](https://docs.typo3.org/permalink/friendsoftypo3/content-blocks:cb-link-editrecord@main)
