Skip to content
Snippets Groups Projects
Commit 9c4a267c authored by Johannes Kreiner's avatar Johannes Kreiner
Browse files

[TASK] Enable pagination canonical caching, add info about static page ranges

parent 57c88328
No related branches found
No related tags found
1 merge request!45Bugfix pagebrowser handling
......@@ -64,7 +64,7 @@ class HeaderMetaDataService {
if (version_compare(ExtensionManagementUtility::getExtensionVersion('sg_seo'), '5.0.0', '>=')) {
$headTagService = GeneralUtility::makeInstance(
HeadTagService::class,
FALSE,
TRUE,
'',
'',
'&tx_sgnews_pagebrowser[currentPage]=' . $currentPage
......
......@@ -307,6 +307,30 @@ pagebrowser.settings {
}
```
Example route enhancers with a static range for the page number to be able to generate URLs without additional cHash parameter
```YAML
routeEnhancers:
PageBrowserNews:
type: Plugin
namespace: tx_sgnews_pagebrowser
routePath: '/{localizedSegment}/{currentPage}'
defaults:
currentPage: '0'
aspects:
currentPage:
type: StaticRangeMapper
start: '1'
end: '1000'
localizedSegment:
type: LocaleModifier
default: page
localeMap:
-
locale: 'de_DE.*'
value: page
```
---
###### addLike
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment