@@ -7,16 +7,9 @@ prototype(Flowpack.SearchPlugin:Search) {
77
88 searchForm = Flowpack.SearchPlugin:Search.Form
99
10- searchResultRenderer = TYPO3.TypoScript:Collection {
11- // the "searchResults" are filled from the <search:widget.paginate> ViewHelper.
12- collection = ${searchResults}
13- itemRenderer = Flowpack.SearchPlugin:SingleResult
14- itemName = 'node'
15- // we also make the full ElasticSearch hit available to nested rendering, if possible
16- itemRenderer.@override.searchHit = ${searchResults.searchHitForNode(node)}
17- }
10+ searchResultRenderer = Flowpack.SearchPlugin:SearchResultRenderer
1811
19- searchResultRenderer.@process.wrap = ${'<ol>' + value + '</ol>'}
12+ searchResultRenderer.@process.wrap = ${'<ol>' + value + '</ol>'}
2013 prototype(Flowpack.SearchPlugin:SingleResult).@process.wrap = ${'<li>' + value + '</li>'}
2114
2215 @cache {
@@ -33,4 +26,13 @@ prototype(Flowpack.SearchPlugin:Search.Form) < prototype(TYPO3.TypoScript:Templa
3326 node = ${site}
3427 templatePath = 'resource://Flowpack.SearchPlugin/Private/Templates/NodeTypes/Search.Form.html'
3528 searchWord = ${request.arguments.search}
29+ }
30+
31+ prototype(Flowpack.SearchPlugin:SearchResultRenderer) < prototype(TYPO3.TypoScript:Collection) {
32+ // the "searchResults" are filled from the <search:widget.paginate> ViewHelper.
33+ collection = ${searchResults}
34+ itemRenderer = Flowpack.SearchPlugin:SingleResult
35+ itemName = 'node'
36+ // we also make the full ElasticSearch hit available to nested rendering, if possible
37+ itemRenderer.@override.searchHit = ${searchResults.searchHitForNode(node)}
3638}
0 commit comments