.. include:: /Includes.rst.txt .. _usage: ============= Usage ============= Usage example with TYPO3 Fluid Styled Content. The following code is just an example. If you wish to use it, it should be placed inside your own extension or site distribution. .. contents:: Add the button to the header field ---------- .. code-block:: :caption: Configuration/TCA/Overrides/tt_content.php $GLOBALS['TCA']['tt_content']['columns']['header']['config'] = array_merge_recursive( $GLOBALS['TCA']['tt_content']['columns']['header']['config'], [ 'fieldControl' => [ 'importControl' => [ 'renderType' => 'addIconTextField', ], ], ] ); Add a typoscript setting ---------- .. code-block:: typoscript :caption: constants.typoscript plugin.tx_myext { settings { allowedHeaderTags =
} } .. code-block:: typoscript :caption: setup.typoscript lib.contentElement { settings { allowedHeaderTags = {$plugin.tx_myext.settings.allowedHeaderTags} } } Allow the tags to be rendered by Fluid ---------- When we have the setting in typoscript, we can access it in fluid and pass it to the stripTags ViewHelper .. code-block:: html {header} Example: Override header partial ---------- .. code-block:: html :caption: Resources/Private/Partials/Header/Header.html

{header}

{header}

{header}

{header}

{header}
{header}
-- do not show header --