TYPO3 EXT:blog Pagination Routing Enhancer

Configure TYPO3 routing enhancer for smart paging's speaking URL to blog TYPO3 extension.

Step 1. Open /sites/yoursite/config.yaml

Step 2. Add below routeEnhancers code

 

# Config.yaml
routeEnhancers:
  BlogPosts:
    type: Extbase
    extension: Blog
    plugin: Posts
    routes:
      -
        routePath: '/page-{page}'
        _controller: 'Post::listRecentPosts'
        _arguments:
          page: '/currentPage'
    defaultController: 'Post::listRecentPosts'
    requirements:
      page: \d+
    aspects:
      page:
        type: StaticRangeMapper
        start: '1'
        end: '1000'

Post a Comment

×
Captcha Code Can't read the image? Click here to refresh

Got answer to the question you were looking for?