CORE Routing Enchancers

Issue #52 resolved
geoffroy.cochard@orleans-metropole.fr created an issue

Hie,

I would like to use Routing enchancers.

In my config.yaml

routeEnhancers:
  FsMediaGallery:
    type: Plugin
    limitToPages: [652]
    routePath: '/album/{mediaAlbum}/{hash}'
    namespace: 'tx_fsmediagallery_mediagallery'
    defaults:
      mediaAlbum: "0"
    requirements:
      mediaAlbum: '[0-9]{1..5}'
      hash: '^[a-zA-Z0-9]{32}$'

Is there a solution ?

Comments (8)

  1. Frans Saris repo owner

    I didn't try the new routing yet for the extension.

    But what's the exact issue you are running into? No url change at all? Or only partly?

  2. Bastian Sykora

    In my case the following configuration is working.

    Iยดm using album uid because the album title contains whitespace. I Think you have to add an field "path_segment" to each album, like news extension?

      FsMediaGallery:
        type: Extbase
        limitToPages: [5]
        extension: FsMediaGallery
        plugin: MediaGallery
        routes:
          - { routePath: '/list/{mediagallery_uid}', _controller: 'MediaAlbum::flatList', _arguments: {'mediagallery_uid': 'mediaAlbum'} }
        defaultController: 'MediaAlbum::flatList'
        aspects:
          mediagallery_uid:
            type: PersistedAliasMapper
            tableName: 'sys_file_collection'
            routeFieldName: 'uid'
    
  3. Rene Tobias

    Any idea when this will be avaiable from TER? I have also white spaces beetwen words in title :(

  4. Log in to comment