Skip to content

Commit

Permalink
[BUGFIX] Remove use of removed ViewHelper usage in EXT:indexed_search
Browse files Browse the repository at this point in the history
With https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/13.0/Breaking-102945-PaginationOfIndexedSearchReplaced.html
the ViewHelpers `is:pageBrowsingResults` and `is:pageBrowsing` have
been removed.

bootstrap_package for TYPO3 v13 needs adaption to prevent a
PHP error when using the adapted indexed_search template.

This has also been reported with:

* https://forge.typo3.org/issues/105562
* FriendsOfTYPO3/introduction#115

The latter needs to be updated to a new release of EXT:bootstrap_package
once this bugfix has been merged.

I do not know / did not check, if this
template would work in TYPO3 v12, so maybe a different template
needs to be used for TYPO3 v12.

Releases: master, 15.x
  • Loading branch information
garvinhicking committed Nov 9, 2024
1 parent 02c1cb6 commit 1d47595
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Resources/Private/Templates/IndexedSearch/Search/Search.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ <h2>{result.categoryTitle}</h2>
<f:if condition="{result.count} > 0">
<f:then>
<p>
<is:pageBrowsingResults numberOfResults="{result.count}" currentPage="{searchParams.pointer}" resultsPerPage="{searchParams.numberOfResults}" />
<f:sanitize.html>
<f:translate key="displayResults" arguments="{0: result.pagination.startRecordNumber, 1: result.pagination.endRecordNumber, 2: result.count}" />
</f:sanitize.html>
{result.sectionText}
</p>
<!-- render the anchor-links to the sections inside the displayed result rows -->
Expand Down Expand Up @@ -64,7 +66,7 @@ <h2>
</f:else>
</f:if>
</f:for>
<is:pageBrowsing numberOfResults="{result.count}" maximumNumberOfResultPages="{settings.page_links}" currentPage="{searchParams.pointer}" resultsPerPage="{searchParams.numberOfResults}" />
<f:render partial="Pagination" arguments="{pagination: result.pagination, searchParams: searchParams, freeIndexUid: freeIndexUid}" />
</f:then>
<f:else>
<div class="alert alert-info">
Expand Down

0 comments on commit 1d47595

Please sign in to comment.