Skip to content
Snippets Groups Projects
Commit 9f09abd8 authored by Andreas Kienast's avatar Andreas Kienast Committed by Benni Mack
Browse files

[BUGFIX] Indexed Search: Streamline ViewHelper namespace

The ViewHelper namespace of Indexed Search was previously known as `is`,
but it has been re-introduced as `search` previously. This commit
streamlines this oopsie-whoopsie.

Resolves: #102941
Releases: main
Change-Id: I17fb68666a8bc1192e025612bae2c6340fd9633d
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/82658


Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarSimon Schaufelberger <simonschaufi+typo3@gmail.com>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarSimon Schaufelberger <simonschaufi+typo3@gmail.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
parent e1d3bd30
Branches
Tags
No related merge requests found
......@@ -46,7 +46,7 @@ The `Searchresult` partial now registers the `search` namespace for Fluid ViewHe
<html
xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
xmlns:search="http://typo3.org/ns/TYPO3/CMS/IndexedSearch/ViewHelpers"
xmlns:is="http://typo3.org/ns/TYPO3/CMS/IndexedSearch/ViewHelpers"
data-namespace-typo3-fluid="true">
......@@ -55,7 +55,7 @@ ViewHelper invocation:
.. code-block:: html
{search:searchResult.rating(firstRow: firstRow, sortOrder: searchParams.sortOrder, row: row)}
{is:searchResult.rating(firstRow: firstRow, sortOrder: searchParams.sortOrder, row: row)}
Rules
......
<html
xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
xmlns:search="http://typo3.org/ns/TYPO3/CMS/IndexedSearch/ViewHelpers"
xmlns:is="http://typo3.org/ns/TYPO3/CMS/IndexedSearch/ViewHelpers"
data-namespace-typo3-fluid="true">
<div class="tx-indexedsearch-res">
<h3>
<f:if condition="{settings.displayResultNumber}"><span class="tx-indexedsearch-result-number">{row.result_number}</span></f:if>
<span class="tx-indexedsearch-title">{row.title -> f:format.raw()}</span>
<span class="tx-indexedsearch-percent">{search:searchResult.rating(firstRow: firstRow, sortOrder: searchParams.sortOrder, row: row)}</span>
<span class="tx-indexedsearch-percent">{is:searchResult.rating(firstRow: firstRow, sortOrder: searchParams.sortOrder, row: row)}</span>
</h3>
<f:if condition="{row.headerOnly} == 0">
<p class="tx-indexedsearch-description">{row.description -> f:format.raw()}</p>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment