Suggestion #6327


Added by Nathan L over 12 years ago. Updated almost 8 years ago.

Should have
Start date:
Due date:
% Done:


Estimated time:
Has patch:


I thought it might be nice to be able to set a page title.




Mode has three potential values:
replace - overwrite the existing page title. This is the default.
append - add the value to the end of the existing title
prepend - add the value to the beginning of the existing title

glue is the string to use if the value is append or prepend.

display has two potential values:
none - meaning the viewHelper renders nothing in the template.
render - means that the tag will render it's children. This way you could use it in the context of an h1 tag like this:

<h1><f:page.title display="render">{blog.title}</f:page.title></h1>


TitleViewHelper.php (2.48 KB) TitleViewHelper.php Nathan L, 2010-02-03 04:58

Updated by Thomas Deinhamer about 12 years ago

Tried it out and works well. Just had to figure out, that
it only works with the default title generation of TYPO3
and this includes an ugly ':' (Doppelpunkt) after the title.

But this viewhelper is a really nice addition!


Updated by Thomas Deinhamer about 12 years ago

Some additional info which I just googled for some time.

To teach 'indexed_search' which title to display in the
Search results list, one can tell it by setting it via:

$GLOBALS['TSFE']->indexedDocTitle = $newTitle;

So in my simple case I just added this little line
to the viewhelper, and now the indexed search will
also display nice titles for pages which act as a
single/details page, displaying product, news, etc. data.


Updated by Bastian Waidelich almost 12 years ago

  • Tracker changed from Feature to Suggestion
  • Project changed from TYPO3.Fluid to Fluid - ViewHelper - Incubator
  • Category deleted (ViewHelpers)

Updated by Bastian Waidelich almost 12 years ago

  • Subject changed from viewHelper for setting page title from a template to page.title

Updated by Lorenz Ulrich over 10 years ago

+1 for this to go into a Fluid release. Are there any chances if I push this to Gerrit?


Updated by Florian Michel almost 8 years ago

This feature is already implemented in FedExt 'VHS', see:

Also available in: Atom PDF