How to Setup Route Enhancers For Your Custom TYPO3 Extensions

Do you want to configure custom Route Enhancers for your custome TYPO3 extensions or templates? This quick TYPO3 tutorial will help you to quickly configure custom TYPO3 route enhancers.

Step-by-Step Guide to Custom Route Enhancers

Step 1: Create routeEnhancers.yaml

# /typo3conf/ext/yourextension/Configuration/Route/routeEnhancers.yaml
routeEnhancers:
  PageTypeSuffix:
    map:
      nsnewscomment: 99

Step 2: Import to Your Site Configuration

# config/sites/extensionname/config.yaml
imports:
  -
    resource: typo3conf/ext/yourextension/Configuration/Route/routeEnhancers.yaml

Post a Comment

×
Captcha Code Can't read the image? Click here to refresh

    Got answer to the question you were looking for?