Configuration for human readable urls

routeEnhancers:
  PageTypeSuffix:
    type: PageType
    map:
      openimmo.json: 1508582933
  OpenimmoImmobiliePlugin:
    type: Extbase
    limitToPages:
      # Page uid of list/search and show page
      - 395
      - 593
      - 508
    extension: Openimmo
    plugin: Immobilie
    routes:
      - routePath: '/{immobilie_slug}'
        _controller: 'Immobilie::show'
        _arguments:
          immobilie_slug: immobilie
      -
        routePath: '/'
        _controller: 'Immobilie::search'
      -
        routePath: '/{immobilie_search}'
        _controller: 'Immobilie::search'
        _arguments:
          immobilie_search: search
    defaultController: 'Immobilie::search'
    defaults:
      immobilie_search: ''
    requirements:
      immobilie_search: 'restore'
    aspects:
      immobilie_slug:
        type: PersistedAliasMapper
        tableName: tx_openimmo_domain_model_immobilie
        routeFieldName: slug
        routeValuePrefix: /
  OpenimmoRequestPlugin:
    type: Extbase
    limitToPages:
      # Page uid of the request page
      - 396
    extension: Openimmo
    plugin: Request
    routes:
      - routePath: '/{immobilie_slug}'
        _controller: 'Immobilie::request'
        _arguments:
          immobilie_slug: immobilie
    defaultController: 'Immobilie::request'
    aspects:
      immobilie_slug:
        type: PersistedAliasMapper
        tableName: tx_openimmo_domain_model_immobilie
        routeFieldName: slug
        routeValuePrefix: /