- edited description
CORE Routing Enchancers
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)
-
reporter -
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?
-
repo owner Think you also tried the wrong type. This extension is extbase driven https://docs.typo3.org/typo3cms/extensions/core/Changelog/9.5/Feature-86365-RoutingEnhancersAndAspects.html#extbase-plugin-enhancer
-
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'
-
repo owner Part 1 of the integration has been merged https://bitbucket.org/franssaris/fs_media_gallery/pull-requests/28/wip-task-urls-by-the-core-instead-of
-
Any idea when this will be avaiable from TER? I have also white spaces beetwen words in title :(
-
repo owner - changed status to resolved
first version of routing support is released in the meantime
-
reporter It works perfectly
- Log in to comment