Feature #26669

Routing should support multidimensional arguments

Added by Bastian Waidelich about 4 years ago. Updated about 4 years ago.

Status:Resolved Start date:2011-05-06
Priority:Must have Due date:
Assigned To:Bastian Waidelich % Done:

100%

Category:MVC - Routing
Target version:-
PHP Version: Complexity:
Has patch:

Description

In order to create URIs for plugins and other sub requests (e.g. widgets) the routing needs to support default values of type array. Additionally the UriPattern must support the "Fluid dot syntax".

An example for such a route:

 1-
 2  name:          'Frontend content with plugin parameters and (HTML) format'
 3  uriPattern:    '{node}/conference/{f3_conference_typoscript_plugin.@action}.html'
 4  defaults:
 5    '@package':    'TYPO3'
 6    '@controller': 'Frontend\Node'
 7    '@format':     'html'
 8    '@action':     'show'
 9    'f3_conference_typoscript_plugin':
10      '@package':    'Conference'
11      '@controller': 'Account\Login'
12  routeParts:
13    node:
14      handler:    F3\TYPO3\Routing\FrontendNodeRoutePartHandler


Related issues

blocks Conference Management - Story #26663: Solve FLOW3/Phoenix bugs for sprint "Call for Papers" Resolved 2011-05-06

Associated revisions

Revision fa507e72
Added by Bastian Waidelich about 4 years ago

[+FEATURE] Routing supports multidimensional arguments

When using sub requests for building URIs (e.g. in plugins or
widgets) the route values/defaults can be multidimensional
arrays. Those are now supported by the routing framework.
Note: to refer to a sub-element in the URI pattern, you can
use the dot syntax: 'level1.level2.key'

Resolves #26669

Change-Id: I56df8e803acd6c3b1c9504153b7c225bf097a7a3

History

#1 Updated by Bastian Waidelich about 4 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF