• Home
  • About
  • Links
  • Contact
  • Imprint
Blue Orange Green Pink Purple

Forcing indexed search to display the title you want.

Posted in php, typo3. on Thursday, November 19th, 2009 by Chris Tags: php, typo3
Nov 19

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.

2 Comments

  1. Elsie Erret on December 19th, 2009

    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.

  2. Sebastiaan de Jonge on February 4th, 2010

    Nice little trick! Never needed it so far, but a good one to keep in mind :-)



Leave a Reply

You must be logged in to post a comment.

SwiftLizard Interactive {Design, Development}

  • Last Posts
    • Scrum Master
    • Loging into a page on shell with curl
    • Developing a clock in Flash with AS3
    • Javascript leashed with google Caja
    • Sometimes I wonder about Developers
  • Categories
    • css (1)
    • design (2)
    • development (2)
    • javascript (4)
    • jquery (3)
    • php (4)
    • project management (2)
    • scrum (2)
    • shell (1)
    • thoughts (7)
    • typo3 (3)
    • xhtml (1)
    • Zend Framework (1)
  • Tags
    actionscript 3.0 agile agile development caja continuous integration css design development Flash Flashbuilder javascript jquery Lean OpenAgile performance optimization php product design qunit scrum security shell sql thoughts typo3 xhtml zend zendFramework
  • Friends Blogs
    • Dmitry Dulepov Blog
    • Dominique Stender
    • Gina Steiners Blog
    • Iphone Fan by Dirk Kunde
    • Mario Rimann Blog
    • Michi Zepernick
    • Thomas Hempel :: Typo3 Unleashed
  • Archives
    • March 2010
    • December 2009
    • November 2009
  • Search


  • t3n Social News bookmark at mister wong publish in twitter bookmark at del.icio.us bookmark at digg.com bookmark at furl.net bookmark at linksilo.de bookmark at reddit.com bookmark at spurl.net bookmark at technorati.com bookmark at google.com bookmark at yahoo.com bookmark at facebook.com bookmark at stumbleupon.com bookmark at propeller.com bookmark at newsvine.com bookmark at jumptags.com

RSS Feed


  • Home
  • About
  • Links
  • Contact
  • Imprint

© Copyright SwiftLizard Interactive {Design, Development}. All rights reserved.
Designed by FTL Wordpress Themes brought to you by Smashing Magazine

Back to Top