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:
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 Florian Michel almost 8 years ago
This feature is already implemented in FedExt 'VHS', see: http://fluidtypo3.org/viewhelpers/vhs/master/Page/Header/TitleViewHelper.html