routeEnhancers:
  news:
    type: Extbase
    extension: News
    plugin: Pi1
    routes:
      - routePath: '{news_title}'
        _controller: 'News::detail'
        _arguments:
          news_title: news
      - routePath: '/page/{page}'
        _controller: 'News::list'
        _arguments:
          page: currentPage
    defaultController: 'News::list'
    defaults:
      page: '1'
    requirements:
      page: \d+
    aspects:
      news_title:
        type: PersistedPatternMapper
        tableName: tx_news_domain_model_news
        routeFieldPattern: '^(?P<path_segment>.+)'
        routeFieldResult: '{path_segment}'
        pageMode: DetailPage
      page:
        type: StaticRangeMapper
        start: '1'
        end: '100'
  CategoryListing:
    type: Simple
    limitToPages: [ 46 ]
    routePath: '/category/{category_id}'
    requirements:
      category_id: '[0-9]{1,3}'
    _arguments:
      category_id: 'categoryUid'