Routes

With TYPO3 9 you have the possibility to configure RouteEnhancers

Example Configuration

routeEnhancers:
  Itmedia2Plugin:
    type: Extbase
    extension: Itmedia2
    plugin: Directory
    routes:
      -
        routePath: '/first-company-page'
        _controller: 'Company::list'
      -
        routePath: '/company-page-{page}'
        _controller: 'Company::list'
        _arguments:
          page: '@widget_0/currentPage'
      -
        routePath: '/company-by-letter/{letter}'
        _controller: 'Company::list'
      -
        routePath: '/show/{company_title}'
        _controller: 'Company::show'
        _arguments:
          company_title: company
    requirements:
      letter: '^(0-9|[a-z])$'
      company_title: '^[a-zA-Z0-9]+$'
    defaultController: 'Company::list'
    aspects:
      company_title:
        type: PersistedAliasMapper
        tableName: tx_itmedia2_domain_model_company
        routeFieldName: path_segment
Copied!