Skip to content

Commit 97d8160

Browse files
committed
Merge pull request #12 from dfeyer/task-remove-wrap
TASK: Replace wrapping process by the TypoScript Tag object
2 parents 053b914 + 9f2c5fc commit 97d8160

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Resources/Private/TypoScript/SearchPlugin.ts2

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ prototype(Flowpack.SearchPlugin:Search) {
88
searchForm = Flowpack.SearchPlugin:Search.Form
99

1010
searchResultRenderer = Flowpack.SearchPlugin:SearchResultRenderer
11-
12-
searchResultRenderer.@process.wrap = ${'<ol>' + value + '</ol>'}
11+
searchResultRenderer = TYPO3.TypoScript:Tag {
12+
tagName = 'ol'
13+
content = Flowpack.SearchPlugin:SearchResultRenderer
14+
}
1315
prototype(Flowpack.SearchPlugin:SingleResult).@process.wrap = ${'<li>' + value + '</li>'}
1416

1517
@cache {
@@ -37,4 +39,4 @@ prototype(Flowpack.SearchPlugin:SearchResultRenderer) < prototype(TYPO3.TypoScri
3739
itemName = 'node'
3840
// we also make the full ElasticSearch hit available to nested rendering, if possible
3941
itemRenderer.@override.searchHit = ${searchResults.searchHitForNode(node)}
40-
}
42+
}

0 commit comments

Comments
 (0)