First of all you have to install the Indexed Search Engine and insert it on a page.Then you have to make one typoscript settiing:
Example
Typoscript setting you have to add to your template into the setup field: (replace 77 with the PID of your page with the index search engine plugin.)
plugin.tx_macinasearchbox_pi1 {pidSearchpage = 77
}
Reference (TypoScript)
Property: | Data type: | Description: | Default: |
|---|---|---|---|
pidSearchpage | int | Wraps the whole item | |
templateFile | string | Path to the template file | EXT:macina_searchbox/pi1/template.htm |
[plugin.tx_macinasearchbox_pi1]
The Template is found in the path of your Extensiondirectiory: typically” typo3conf/ext/macina_searchbox/pi1/template.htm”
To change the Layout of your Searchbox just open the Template with your favourite HTML editor, and modify it by your needs.
Markers
The Markers (###MARKER###) are replaced by the plugin as following:
###HEADLINE### Displays the Headline
###ADVANCED### Advanced Search Link
###SUBMIT### Alttext for the submit button
###ACTLANG### UID of the actual language
###SEARCHPID### PID of the Searchpage
When editing the HTML file leave the markers in the HTML source to ensure the plugin's functionality. You can move them around as you like it, exept the markers ###ACTLANG### and ##SEARCHPID###.
Backend languages are English and German.
To edit or add frontend languages to the plugin, edit the phpfile:
typo3conf/ext/macina_searchbox/pi1/tlocallang.php
To add new language you have to copy the labels of the default language into your desired one and translate them:
$LOCAL_LANG = Array (
"default" => Array (
"headline" => "Search & Find",
"advanced" => "advanced search",
"submit" => "search",
),
"dk" => Array (
[paste here for danish language]
),
"de" => Array (
"headline" => "Suchen & Finden",
"advanced" => "erweiterte Suche",
"submit" => "suchen",
),
"no" => Array (
),
"it" => Array (
),
"fr" => Array (
),
.
.
.