#19465Configuration enhancement for indexed_search
Description
This was not possible with actual version of indexed_search because
- templating was not consequent, there were still hardcoded HTML-output
- pagebrowser was not configurable and not templated
- complete search result was not configurable
Also it was not possible to split the output and display in different parts of the page. I added a new plugin which uses indexed_search in a special way using only the form, so search is’t done multiple times. The new plugin is a virtual one that calls indexed_search with a special configuration, which can be used with Typoscript or as Content Element on page.
I added flexforms to both plugins so it is possible to use indexed_search without additional Typoscript.
Here is an overview of the implemented changes. I configured them to the default output which is the same as actual,the only change of defaults are
- link for extended Searchform set to 0
- standard template is the CSS-version
- css-template has new sections: browsebox top, browsebox bottom, main tamplate for search results
CHANGE OF FUNCTIONALITY:
none
CHANGE OF CONFIGURATION:
A new plugin was added: Searchbox for indexed search.
This makes it possible to use it also as a global searchbox on the site. There is no more need to use an extra plugin like macina search or creating a form by yourself.
This is how it’s done in Typoscript:
plugin.tx_indexedsearchbox < plugin.tx_indexedsearch
plugin.tx_indexedsearchbox.code = form
following Typoscript-vars are added
#the target page for the searchform where are the results displayedresultPid =
#what to display
code = form,rules,results
- Display the searchword in results, like: Search for “searchword“
whatIs_stdWrap {
wrap =|
}
searchWord_stdWrap {
wrap = “|”
}
- Paging
defaultResultsProPage = 10
pageBrowser {
doNotLinkCurrent = 1
general_stdWrap {
wrap =- |
}
previous_stdWrap {
wrap = - |
- |
- |
- |
}
next_stdWrap {
wrap =
}
pages_stdWrap {
wrap =
}
current_stdWrap {
wrap =
}
pageLinks_stdWrap {
preCObject = TEXT
preCObject.dataWrap = {LLL:EXT:indexed_search/pi/locallang.xml:pi_list_browseresults_page}
preCObject.noTrimWrap = | ||
}
}
3 sections are added
- section for top browsebox
- section for bottom browsebox
- section for the complete results output
Remember when change settings in typoscript of plugin.tx_indexedsearch to repeat the copy for this plugin.
I tried to describe the patch in detail so please test it, i hope you enjoy the enhancement.
(issue imported from #M9574)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Subtasks 5
- Feature #14902indexed_search: Results navigation relies on JavaScript
- Feature #20421Unflexible Output of Resultbrowser
- Bug #20875The descriptionlength and other parameters are hardcoded for listview
- Feature #23156Slash is hard–coded in the page path
- Feature #47613indexed_search / no_cache should be configurable for forwardSearchWordsInResultLink