Reputation: 1362
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
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
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