Skip to content

Commit 9f2c5fc

Browse files
committed
TASK: Replace wrapping process by the TypoScript Tag object
1 parent 1a7bd8b commit 9f2c5fc

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 {
@@ -35,4 +37,4 @@ prototype(Flowpack.SearchPlugin:SearchResultRenderer) < prototype(TYPO3.TypoScri
3537
itemName = 'node'
3638
// we also make the full ElasticSearch hit available to nested rendering, if possible
3739
itemRenderer.@override.searchHit = ${searchResults.searchHitForNode(node)}
38-
}
40+
}

0 commit comments

Comments
 (0)