DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

Results per Page

EXT:solr allows you to configure how many result per page will be shown and at the same time the user can also change this value to an allowed value.

The following configuration can be used to configured the results per page:

plugin.tx_solr {
    search {
        results {
            resultsPerPage = 6
            resultsPerPageSwitchOptions = 12, 18, 24
        }
    }
}

When you apply the configuration above, the frontend will show 6 search results by default and show the options 12, 18 and 24 to the user to change the amount of visible results

../_images/results_per_page.png

Results per page

Templating

The rendering of the “perPage selector” is done on “Resources/Private/Partials/Frontend/Results/PerPage.html”. This partial is build in a way that the behaviour of the perPage selector is the same as in EXT:solr. If you want to do your custom rendering for example with links instead of a for, you can customize the rendering there.