Page.title ViewHelper <f:page.title>

New in version 14.0

The ViewHelper allows setting the page title directly from Fluid templates.

This is especially useful for Extbase plugins that need to set a page title in their detail views without having to implement their own custom page title provider.

EXT:my_extension/Resources/Private/Templates/Item/Show.html
<f:page.title>{item.title}</f:page.title>

<h1>{item.title}</h1>
<p>{item.description}</p>
Copied!

The ViewHelper can also be used with static content:

EXT:my_extension/Resources/Private/Templates/Static/About.html
<f:page.title>About Us - Company Information</f:page.title>

<h1>About Us</h1>
<p>Welcome to our company...</p>
Copied!

Go to the source code of this ViewHelper: Page\TitleViewHelper.php (GitHub).

The ViewHelper integrates seamlessly with TYPO3's existing page title provider system and respects the configured provider priorities.