---
title: "Sample RouteEnhancer for speaking url's"
manual: "operations"
version: "8.2"
permalink: "https://docs.typo3.org/permalink/kanow/operations:speakingurl@8.2"
source: "Configuration/SpeakingUrl/Index.rst"
rendered: "2026-11-29T21:14:31+00:00"
---

# Sample RouteEnhancer for speaking url's {#speakingurl}

## Usage in your Site Configuration {#usage-in-your-site-configuration}

Url routing for TYPO3 Extensions are explained more detailed here
[Advanced routing configuration](https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/Routing/EnhancementsAspects/Index.html#routing-advanced-routing-configuration).
That's also needed to to use nice url's for single views of operations, vehicles, resources and the pages in list with
pagination.

More information about Routing: [Speaking Urls](https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/Routing/Index.html#routing-introduction)

You don't know about the Site Configuration? Read here: [Sitehandling](https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/SiteHandling/Basics.html#sitehandling-basics)

Here is an example RouteEnhancer configuration that I'm using in my develop environment.

```yaml
routeEnhancers:
  OperationsPlugin:
    # set "limitToPages" for route enhancer directly in your site config
    type: Extbase
    extension: Operations
    plugin: List
    routes:
      -
        routePath: '/{localized_page}-{page}'
        _controller: 'Operation::list'
        _arguments:
          page: currentPage
      -
        routePath: '/{operation_title}'
        _controller: 'Operation::show'
        _arguments:
          operation_title: operation
      -
        routePath: '/{vehicle_title}'
        _controller: 'Vehicle::show'
        _arguments:
          vehicle_title: vehicle
      -
        routePath: '/{resource_title}'
        _controller: 'Resource::show'
        _arguments:
          resource_title: resource

    defaultController: 'Operation::list'
    defaults:
      page: '1'
    requirements:
      page: \d+
    aspects:
      page:
        type: StaticRangeMapper
        start: '1'
        end: '200'
      operation_title:
        type: PersistedAliasMapper
        tableName: tx_operations_domain_model_operation
        routeFieldName: path_segment
      vehicle_title:
        type: PersistedAliasMapper
        tableName: tx_operations_domain_model_vehicle
        routeFieldName: path_segment
      resource_title:
        type: PersistedAliasMapper
        tableName: tx_operations_domain_model_resource
        routeFieldName: path_segment
      localized_page:
        type: LocaleModifier
        default: 'page'
        localeMap:
          - locale: 'de_DE.*'
            value: 'seite'

```

This example is included in TYPO3 Extension [fire_department](https://extensions.typo3.org/extension/fire_department)
in folder: `Configuration/Yaml/Routes/Operations.yaml`.
Use an `@import` statement in your site config and set `limitToPages`:

```yaml
imports:
  - { resource: "EXT:fire_department/Configuration/Yaml/Routes/Operations.yaml" }
routeEnhancers:
  OperationsPlugin:
    limitToPages: [5,7,9]

```

> [!TIP]
> Copy that file to your Site Package and use the import for those file if you don't want using the default
> configuration.
