.. include:: /Includes.rst.txt .. _content_blocks_view_helpers: =========== 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 :html:`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 :html:`xmlns:cb` declaration on the root tag of your template to provide proper autocompletion and validation: .. code-block:: html Available ViewHelpers: .. rst-class:: horizbuttons-attention-m * :ref:`cb:assetPath ` * :ref:`cb:languagePath ` * :ref:`cb:link.editRecord ` **Table of Contents** .. toctree:: :titlesonly: :maxdepth: 1 AssetPath/Index LanguagePath/Index Link/EditRecord/Index