Today I spent about 3 hours searching for solution to get our beloved friend the indexed search engine of Typo3 to take the title of my variant of the a21glossary_advanced_output as the title displayed in its results page. This is because I altered that extension to just display a list of names on the first page, and afterwards the description of the glossary entry, a real good wish/suggestion of a customer of mine in a current project from the usability point of view.
So after asking uncle google for several hours, and some more trail an error, I stumbled across this little line:
$GLOBALS['TSFE']->indexedDocTitle = "Here the title to display";
Honestly, this is not mentioned in the documentation of the indexed search or in any other documentation I have found. Searching for “indexed_search page title” does not return everything near this, nor did “index_search result title” do the magic.
The developer I am, really frustrated, I took a look in the source of the indexed search engine and found the magic line. Asking uncle google about “indexedDocTitle” and how it has to be used returned the solution.
So guys and girls to save you some time, and nerves here ist a little extension for you that is configured via typoscript:
T3X_sl_indexedsearch_result_title-1_0_0-z-200911192123
Typoscript for your page is quite easy:
plugin.tx_slindexedsearchresulttitle_pi1{
indexedSearchResultTitle = COA
indexedSearchResultTitle{
5 = TEXT
5.value = Hello
10 = TEXT
10.value = World
wrap = Test Title: |
}
}
page.999 < plugin.tx_slindexedsearchresulttitle_pi1
After those lines the extension is included in every page, and depending on what you have configured in TypoScript ( in this case “Test Title: Hello World” ) will be shown in the results of the indexed search.
I hope this saves you some time. By the time I have found some time to write a little manual for the extension, I promise I will upload this to the TER, but until then you will find it here. Just because me myself I hate extensions that come without any manual if there is something to configure.


Well-written. Thanks. I have been learning a lot about content management lately. I have also been experimenting with setting up an e-commerce site using WordPress. Have you ever done that? Any suggestions for me? It’s pretty fun learning it. Visit my blog if you’d like to read more. Thanks again for this blog – it is really well-done.
Nice little trick! Never needed it so far, but a good one to keep in mind