ViewHelpers
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: declaration on the root
tag of your template to provide proper autocompletion and validation:
<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"
>
Copied!
Available ViewHelpers:
Table of Contents