.. include:: /Includes.rst.txt .. _feature-107359-1740170000: ======================================================= Feature: #107359 - Introduce Fluid page meta ViewHelper ======================================================= See :issue:`107359` Description =========== A new Fluid ViewHelper :html:`` has been introduced to allow setting meta tags directly from Fluid templates using TYPO3's MetaTagManager API. This is especially useful for Extbase plugins that need to set meta tags in their detail views without having to implement custom meta tag handling. In addition, frontend developers do not need to write custom TypoScript anymore but can use Fluid directly. .. code-block:: html :caption: EXT:my_extension/Resources/Private/Templates/Item/Show.html {item.description} {item.title} article

{item.title}

{item.description}

The ViewHelper supports all features of the MetaTagManager API: **OpenGraph and Twitter / X Card meta tags:** .. code-block:: html My Article Title Article description summary_large_image **Sub-properties for complex meta tags:** .. code-block:: html {item.image.url} **Custom meta tag types:** .. code-block:: html John Doe index, follow **Replacing existing meta tags:** .. code-block:: html Override any existing description ViewHelper Arguments ==================== * **property** (required): The meta property name (for example, `description`, `og:title`) * **type** (optional): The meta type attribute (`name`, `property`, `http-equiv`). If not set, the appropriate MetaTagManager determines the type automatically. * **subProperties** (optional): Array of sub-properties for complex meta tags. * **replace** (optional): Boolean to replace existing meta tags with the same property (default: `false`). Impact ====== Extension developers can now easily set meta tags from Fluid templates without needing to use the MetaTagManager API directly in PHP code. This simplifies the implementation of SEO-optimized pages in Extbase plugins, especially for detail views where meta tags should reflect the displayed record. The ViewHelper integrates seamlessly with TYPO3's existing MetaTagManager system and respects all configured meta tag managers and their priorities. .. index:: Frontend, ext:fluid