[TYPO3] EXT: indexsearch - add to page

Philipp Gampe philipp.gampe at gmx.de
Sun Oct 5 22:10:42 CEST 2008


Thanks for the link...

I tried this one before and get the searchbox. It is redirecting to the
search page, but does not display the results. But if I use the form on
the page itself it works...

I compared the two HTML codes and especially the page plugin looks
pretty different compared to the code snipped output:
--- quote a begin ---
<form action="index.php?id=147" method="post" id="indexedsearch">
	<table cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td>
				<input name="tx_indexedsearch[sword]" value="test"
class="searchbox-sword" type="text" />
			</td>
			<td align="right">
				&nbsp;<input type="hidden" name="tx_indexedsearch[sections]"
value="0" /><input name="tx_indexedsearch[submit_button]" value="Search"
type="hidden" />
				<input name="search" src="fileadmin/templates/images/search.gif"
value="Search" class="searchbox-button" type="image" />
			</td>
		</tr>
	</table>
</form>
--- quote a end ---
and now the output on the page
--- quote b begin ---
<form action="index.php?id=147&amp;no_cache=1"
id="a8aadd225db38cf5ab8fd07d59f1cf848"
name="a8aadd225db38cf5ab8fd07d59f1cf848" enctype="multipart/form-data"
method="post" onsubmit="return
validateForm('a8aadd225db38cf5ab8fd07d59f1cf848','','','','')">
	<input type="hidden" name="stype" value="L0" />
	<input type="hidden" name="locationData" value="147:tt_content:21" />
	<table border="0" cellspacing="1" cellpadding="1" class="csc-searchform">
		<tr>
			<td>
				Suchwort:
			</td>
			<td>
				<input type="text" name="sword" size="20" value="" />
			</td>
		</tr>
		<tr>
			<td>
				Suchen in:
			</td>
			<td>
				<select name="scols" size="1">
					<option
value="pages.title-subtitle-keywords-description:tt_content.header">Überschriften
und Schlagwörter</option>
					<option
value="tt_content.header-bodytext-imagecaption">Seiteninhalt</option>
				</select>
			</td>
		</tr>
		<tr>
			<td>
				<input type="submit" name="submit" value="Suchen!" />
			</td>
		</tr>
	</table>
</form>
--- quote b end ---

where does this validate form stuff come from and where can I insert it
into my TS (I guess that is the problem all along?!)?

Best Regards,
Phil

Peter Klein schrieb:
> HI Philipp.
> 
> Try this:
> http://www.typo3wizard.com/en/snippets/cool-stuff-typoscript/ts-based-searchbox-for-indexed-search.html
> 
> --
> Peter Klein
> 
> "Philipp Gampe" <philipp.gampe at gmx.de> wrote in message 
> news:mailman.1.1223128929.6325.typo3-english at lists.netfielders.de...
> Hello,
> 
> I am already all day, but I can not get the search box working on my site
> 
> the searchbox works fine if I insert it as a plugin with the page module.
> 
> but if I insert it with TS on my default template I just see the
> searchform and if I insert anything I get a nothing found message.
> 
> I just can not figure out why it does not want to display the results
> 
> I use the following TS
> --- quote begin---
> temp.suche < plugin.tx_indexedsearch
> temp.suche {
>  _CSS_DEFAULT_STYLE >
>  show.rules = 0
>  show.parsetimes = 1
>  show.L2sections = 1
>  show.L1sections = 1
>  show.LxALLtypes = 1
>  show.advancedSearchLink = 0
>  show.alwaysShowPageLinks = 1
>  show.resultNumber = 1
>  search.rootPidList = 2
>  result_link_target = 147
> 
> }
> --- quote end ---
> 
> I then insert it the the proper position
> 
> the question is just that plain and simple, but I can not get it to work
> 
> Best Regards,
> Phil


More information about the TYPO3-english mailing list