Issue Bug Resolved

#109622EXT:indexed_search: TypoScript setting plugin.tx_indexedsearch.settings.page_links is ignored

Marco Kuprat 04/17/26, 10:05 updated 10/16/26, 22:00

Description

In TYPO3 13.4 with EXT:indexed_search and not using Site Sets, the TypoScript setting plugin.tx_indexedsearch.settings.page_links has no effect.
Thus, when you get search results with a large number of entries, the page browser shows all pages and cannot be limited to a maximum number.

The setting worked in TYPO3 12.4 and is documented here for TYPO3 13.4:
https://docs.typo3.org/c/typo3/cms-indexed-search/13.4/en-us/Configuration/TypoScript/Index.html#page-links

Reviews 1

History 78

  1. Marcel Marty commented <span data-processor="relativetime" data-value="2026-06-24T13:07:22+00:00" > 06/24/26, 13:07 </span>

    We fixed it temporarily with the following XCLASS:

    use TYPO3\CMS\Core\Pagination\SlidingWindowPagination;
    use TYPO3\CMS\IndexedSearch\Controller\SearchController as OriginalSearchController;
    use TYPO3\CMS\IndexedSearch\Pagination\SlicePaginator;
    
    /**
     * XCLASS to fix pagination link count bug in TYPO3 13.
     * @see https://forge.typo3.org/issues/109622
     */
    class SearchController extends OriginalSearchController
    {
        protected function getDisplayResults(array $searchData, array $searchWords, array|bool $resultData, int $freeIndexUid = -1): array
        {
            $result = parent::getDisplayResults($searchData, $searchWords, $resultData, $freeIndexUid);
    
            if ($resultData && ($resultData['count'] ?? 0) > 0) {
                $pointer = (int)($searchData['pointer'] ?? 0);
                $numberOfResults = (int)($searchData['numberOfResults'] ?? 10);
                $maxPageLinks = (int)($this->settings['page_links'] ?? 10);
    
                $paginator = new SlicePaginator(
                    $result['rows'],
                    $pointer + 1,
                    (int)$resultData['count'],
                    $numberOfResults,
                );
    
                $result['pagination'] = new SlidingWindowPagination($paginator, $maxPageLinks);
            }
    
            return $result;
        }
    }
  2. Benni Mack commented and changed status New Needs Feedback <span data-processor="relativetime" data-value="2026-09-23T23:24:50+00:00" > 09/23/26, 23:24 </span>

    This is true for 13.4: SearchController always builds a SimplePagination there, so page_links is never looked at.

    On main and 14.3 this was addressed with #105084. It adds plugin.tx_indexedsearch.settings.pagination_type, which accepts “simple” or “slidingWindow”, and page_links is now evaluated for “slidingWindow”. To keep existing behavior, the default remains simple, so setting only page_links still shows all pages. You need both:

    plugin.tx_indexedsearch.settings.pagination_type = slidingWindow
    plugin.tx_indexedsearch.settings.page_links = 10

    If you use Site Sets, the same two options are available in the settings of the indexed_search set.

    As this was a feature and not a bugfix, it was not backported to 13.4.

  3. Marco Kuprat commented <span data-processor="relativetime" data-value="2026-10-14T07:00:14+00:00" > 10/14/26, 07:00 </span>

    But if it has no effect in TYPO3 13.4, the documentation is wrong:
    https://docs.typo3.org/c/typo3/cms-indexed-search/13.4/en-us/Configuration/TypoScript/Index.html#page-links

    IMO it is a bug in TYPO3 13.4, as it worked in TYPO3 12.4.

  4. Gerrit Code Review pushed patch set 1 for 13.4 to change 96760 status Needs Feedback Under Review <span data-processor="relativetime" data-value="2026-10-16T14:52:59+00:00" > 10/16/26, 14:52 </span>

  5. Benni Mack commented <span data-processor="relativetime" data-value="2026-10-16T14:54:59+00:00" > 10/16/26, 14:54 </span>

    Marco Kuprat wrote in #note-5:
    > But if it has no effect in TYPO3 13.4, the documentation is wrong:
    > https://docs.typo3.org/c/typo3/cms-indexed-search/13.4/en-us/Configuration/TypoScript/Index.html#page-links
    >
    > IMO it is a bug in TYPO3 13.4, as it worked in TYPO3 12.4.

    You are right, I pushed a change for it.

  6. Benni Mack commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-10-16T22:00:33+00:00" > 10/16/26, 22:00 </span>

    Applied in changeset commit:4a6d8ecaa51bcff2d4a0dfd135745c296700adc7.