serfhos/my-configurable-routes

TYPO3 Extension: Configurable Route Type

Installs: 4 481

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 1

Open Issues: 0

Type:typo3-cms-extension

2.0.0 2023-05-23 15:35 UTC

This package is auto-updated.

Last update: 2024-11-23 19:06:09 UTC


README

  • Description: TYPO3 Extension: Configurable Route Type
  • Extension key: my_configurable_routes

Configure your specific named routes in the backend for page setup.

Example Configuration

Add the following snippet to your Site config.yaml

routeEnhancers:
  ExampleDetailPlugin:
    type: PluginConfigurableByPage
    configurable:
      key: example # unique for this route enhancer
      label: 'Detail page of Example plugin' # or LLL:EXT: reference
      icon: your_registered_icon # or empty when not available
    routePath: '/{slug}'
    namespace: tx_exampleplugin_detail
    _arguments:
      slug: article
    aspects:
      slug:
        type: PersistedPatternMapper
        tableName: 'tx_exampleplugin_domain_model_article'
        routeFieldPattern: '^(?P<uid>\d+)'
        routeFieldResult: '{uid}-{path_segment}'

This is now available as a page property under Appearance tab. It is added to the palette Use as Container with the label Contains URL Routing .

Screenshots:

dropdown list