[TYPO3-german] macina_searchbox eingerichtet, sucht aber nicht

Philipp Holdener philipp at holdener.ch
Wed May 30 17:30:32 CEST 2012


>>
>> page.10.marks.searchbox< plugin.tx_macinasearchbox_pi1
>> plugin.tx_macinasearchbox_pi1 {
>> # ID der Seite, die das indexed-search plugin enthält
>> pidSearchpage = 147
>> # Pfad zum Searchbox-Templatefile
>> templateFile = fileadmin/templates/main/template.htm
>> }
>>
hallo

ich mach das immer direkt über typoscript.. ohne die extension 
macinasearchbox..


Sieht dann bei mir so aus


# Suchwort in "value"
lib.value = COA_INT
lib.value {
    	10 = TEXT
    	10.data = GP:tx_indexedsearch|sword
    	10.htmlSpecialChars = 1
    	10.if.isTrue.data = GP:tx_indexedsearch|sword

    	20 = TEXT
    	20.value = {$suchfeldvalue}
    	20.if.isFalse.data = GP:tx_indexedsearch|sword
}

lib.suche = COA
lib.suche.10 = COA_INT
lib.suche.10.10 = TEXT
lib.suche.10.10 {
    	typolink.parameter = {$id_suche}
    	typolink.returnLast = url
    	wrap (
   		<form action="|" method="post" class="search">
   		<fieldset class="cf">
   		<span class="txt">
   	)
}

lib.suche.10.20 < lib.value
lib.suche.10.20 {
    	wrap = <input type="text" name="tx_indexedsearch[sword]" id="suche" 
value="|"  />
}

lib.suche.10.30 = TEXT
lib.suche.10.30.value (
	</span>
	<span class="btn">
	<input type="submit" value="go" name="button" />
	</span>
	<input type="hidden" name="tx_indexedsearch[sections]" value="0" />
	</fieldset>
	</form>
)




More information about the TYPO3-german mailing list