typo3typoscriptfluidtypo3-9.xtx-indexed-search

Remove the word 'Page' from indexed_search pagination?


The indexed_search pagination outputs links like "Page 1, Page 2, Page 3" Is there any way to edit it to remove the word 'Page' so the output is just the numbers?

<is:pageBrowsingResults numberOfResults="{result.count}" currentPage="{searchParams.pointer}" resultsPerPage="{searchParams.numberOfResults}" />

Solution

  • I just looked into the code and saw that the page label is fetched from the locallang with index displayResults.page.

    With plugin.tx_indexedsearch._LOCAL_LANG.en.displayResults.page = and without a string behind the = it should work. The en is for the language key, you need to set it for every language.

    The documentation you can find here: https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/TopLevelObjects/Plugin.html#local-lang-lang-key-label-key