[TYPO3] inserted indexed search over MARKS but typoscript conf doesnt function
Peter Klein
peter at umloud.dk
Tue Jan 31 19:12:16 CET 2006
Hi Kahlil, for that to work you'll need to either create your own searchform
using TS
I prefer this method myself, so see example below ;)
Or you could install the extension "macina_searchbox" which creates a html
template-based version of the login box. (If I remember correctly..)
Here's an example on doing it the TypoScript-Way ;)
First create a page, and insert the indexed search plugin on that page, and
make sure the search are working..
Then insert the code below in your TS setup, and change the value of the
constant "plugin.tx_indexedsearch.searchUID" to be the pageID of the page
you just created.
Place this in CONSTANTS:
-- cut --
plugin.tx_indexedsearch.searchUID = 82
plugin.tx_indexedsearch.showAdvanced = 0
-- cut --
Place this in SETUP:
-- cut --
# --- SEARCHBOX
OBJECT --------------------------------------------------------
lib.searchbox = COA_INT
lib.searchbox {
stdWrap.prefixComment = 2 | lib.searchbox
10 = TEXT
10.typolink.parameter = {$plugin.tx_indexedsearch.searchUID}
10.typolink.returnLast = url
10.wrap = <div id="indexedsearchbox"><form action="|" method="post"
id="indexedsearch"><table cellpadding="0" cellspacing="0" border="0">
20 = COA
20 {
wrap = <tr> | </tr>
10 = TEXT
10.data = GPvar : tx_indexedsearch |sword
10.wrap = <td><input name="tx_indexedsearch[sword]" value="|"
class="searchbox-sword" type="text" /></td>
20 = COA
20 {
wrap = <td align="right"> |</td>
10 = TEXT
10.value = <input type="hidden" name="tx_indexedsearch[sections]"
value="0" />
20 = TEXT
20.value = <input name="tx_indexedsearch[submit_button]"
value="Search" type="hidden" />
30 = TEXT
30.value = <input name="search"
src="fileadmin/templates/images/search.gif" value="Search"
class="searchbox-button" type="image" />
}
}
40 = COA
40 {
wrap = <tr>|</tr>
10 = TEXT
10.value = Advanced search »
10.typolink.parameter = {$plugin.tx_indexedsearch.searchUID}
10.typolink.additionalParams = &tx_indexedsearch[ext]=1
10.wrap = <td align="right" colspan="2">|</td>
if.isTrue = {$plugin.tx_indexedsearch.showAdvanced}
}
wrap = | </table></form></div>
}
-- cut --
---
Peter Klein / Umloud Untd
"Kahlil Lechelt" <k.lechelt at gmx.de> wrote in message
news:mailman.1.1138727387.24235.typo3-english at lists.netfielders.de...
> no i didnt do that.
> how is it done?
>
> Peter Klein wrote:
>> Hi Kahlil. Have you created a "searchresult page" with the indexed_search
>> inserted as a regular content element/plugin?
>> Then in the TS config of your searchbox, you'll have to configure it to
>> jump to the searchresult page for displaying the result of the search..
>>
>> ---
>> Peter Klein / Umloud Untd.
>>
More information about the TYPO3-english
mailing list