[TYPO3-english] fixed top menu search doesn't show results on a result page

Francesc Juliana sad at sdf.com
Wed May 29 12:57:09 CEST 2013


Hello everybody:

I have one top menu that appears on every page.
There we can find a searchbox. The results of this search box are supposed 
to appear on a page (id=27) that contains a search section.

I have the following lines in template:

# Create the searchbox in TypoScript, so we can easily include in on every 
page
lib.searchbox = COA

# Make the searchbox remember the search term on the search result page
[globalVar = TSFE:id = 27]
lib.searchbox = COA_INT
[global]

lib.searchbox {
 stdWrap.prefixComment = 2 | lib.searchbox
 10 = TEXT
 10.typolink.parameter = 27
 10.typolink.returnLast = url
 10.wrap = <form action="|" method="post" id="indexedsearch"><fieldset>
 20 = COA
 20 {
  10 = TEXT
  10.data = GP : tx_indexedsearch |sword
  10.htmlSpecialChars = 1
  10.wrap = <input name="tx_indexedsearch[sword]" value="|" id="inputText" 
type="text" />
  20 = COA
  20 {
   10 = TEXT
   10.value = <input type="image" 
src="{$filepaths.templates}images/bg_searchButton.gif" id="inputButton" 
alt="Search" title="Search" />
   20 = TEXT
   20.value = <input type="hidden" name="tx_indexedsearch[sections]" 
value="0" />
   30 = TEXT
   30.value = <input name="tx_indexedsearch[submit_button]" value="Search" 
type="hidden" />
  }
 }

 wrap = |</fieldset></form>
}

The resuls are not shown in results page (id=27). If you make a search using 
search section in page with id=27 the results are being shown.

Anybody knows why am not able to show the results of search done using 
search section in top menu?

Thanks in advance.

Francesc 




More information about the TYPO3-english mailing list