.. include:: /Includes.rst.txt .. _routes: ====== Routes ====== Configure RouteEnhancers to get speaking URLs for the company list, letter, and detail views. Example configuration ===================== .. code-block:: yaml :caption: config/sites/my_site/config.yaml routeEnhancers: Yellowpages2Plugin: type: Extbase extension: Yellowpages2 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_yellowpages2_domain_model_company routeFieldName: path_segment