user500665
user500665

Reputation: 1362

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}" />

Upvotes: 2

Views: 698

Answers (2)

Ashish Patel
Ashish Patel

Reputation: 1031

From Typo3 10 onwards we have no pagination HTML template, instead Typo3 has provided ViewHelper for PageBrowser. So, We can extend that viewhelper in our Template provider extension and edit as per our needs.

Upvotes: 1

Thomas L&#246;ffler
Thomas L&#246;ffler

Reputation: 6164

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

Upvotes: 5

Related Questions