Skip to main content Skip to page footer

Products Plugin

SEO Code Snippet

# config.yaml to render the product url seo friendly
routeEnhancers:
  CartProducts:
    type: Extbase
    limitToPages: [xx,xx] # pids of product detail plugin
    extension: CartProducts
    plugin: Products
    routes:
      - { routePath: '/{product_title}', _controller: 'Product::show', _arguments: {'product_title': 'product'} }
    defaultController: 'Product::show'
    aspects:
      product_title:
        type: PersistedAliasMapper
        tableName: 'tx_cartproducts_domain_model_product_product'
        routeFieldName: 'path_segment'
        routeValuePrefix: ''