tx_macinasearchbox

Suchbox Plugin

Ins Template:

# ------------------------------------
# Indexed Search: Searchbox
# ------------------------------------
plugin.tx_macinasearchbox_pi1 {
    pidSearchpage = 40
    templateFile = fileadmin/layout/html/rsys_macina_searchbox.html
}

plugin.tx_macinasearchbox_pi1._LOCAL_LANG.de {
    headline = Suchen:
    submit = Suche
}

plugin.tx_macinasearchbox_pi1._LOCAL_LANG.en {
    headline = Search:
    submit = Search
}

Die pidSearchpage zeigt auf eine Seite mit dem Indexed Search Plugin.

Im Template muss der Marker  eingefügt werden

RSYS_SEARCH < plugin.tx_macinasearchbox_pi1

Erstellt: 07/2010| Geändert: 10/2015

Suchfeld leer nach Suche

Das Suchfeld ist leer nach der Suche. Hier die Änderung an der Machina Suchbox (pi1/class.tx_macinasearchbox_pi1.php):

// rsys modified
$sword_value = t3lib_div::_POST( 'tx_indexedsearch' );
$sword_value = $sword_value['sword'];
$markerArray['###SWORD_VALUE###'] = htmlspecialchars( $sword_value );

Erstellt: 07/2010| Geändert: 10/2015

Template

<!-- ###TEMPLATE### begin -->
<form action="###SEARCHPID###" method="post" name="searchform" id="searchform" style="margin:0px; padding:0px; ">
<input name="tx_indexedsearch[sword]" type="text" value="###SWORD_VALUE###"/>
<input name="Abschicken" src="fileadmin/layout/images/button_lupe.gif" style="border:0;" type="image" alt="OK">
<input type="hidden" name="tx_indexedsearch[_sections]" value="0" />
<input type="hidden" name="tx_indexedsearch[pointer]" value="0" />
<input type="hidden" name="tx_indexedsearch[ext]" value="0" />
<input type="hidden" name="tx_indexedsearch[lang]" value="###ACTLANG###" />
<input type="hidden" name="no_cache" value="1" />
</form>

<!-- ###TEMPLATE### end -->

Erstellt: 07/2010| Geändert: 10/2015