Skip to content

Instantly share code, notes, and snippets.

@pumatertion
Created June 3, 2014 08:14
Show Gist options
  • Save pumatertion/314cffa8e6814545d65d to your computer and use it in GitHub Desktop.
Save pumatertion/314cffa8e6814545d65d to your computer and use it in GitHub Desktop.
Source:
node123.html?--pipeu_factura_nodetypes-basket%5B%40package%5D=pipeu.factura.nodetypes&--pipeu_factura_nodetypes-basket%5B%40controller%5D=basket&--pipeu_factura_nodetypes-basket%5B%40action%5D=index
Target:
node123/basket.html
############################
Source:
node123.html?--pipeu_factura_nodetypes-basket%5B%40package%5D=pipeu.factura.nodetypes&--pipeu_factura_nodetypes-basket%5B%40controller%5D=basket&--pipeu_factura_nodetypes-basket%5B%40action%5D=step1
Target:
node123/basket/step1.html
############################
Source:
node123.html?--pipeu_factura_nodetypes-basket%5B%40package%5D=pipeu.factura.nodetypes&--pipeu_factura_nodetypes-basket%5B%40controller%5D=document&--pipeu_factura_nodetypes-basket%5B%40action%5D=show&--pipeu_factura_nodetypes-basket%5B%node%5D=foo
Target:
node123/document/foo.html
@khuppenbauer
Copy link

not tested - this could work

node123.html
?--pipeu_factura_nodetypes-basket[@package]=pipeu.factura.nodetypes
&--pipeu_factura_nodetypes-basket[@controller]=basket
&--pipeu_factura_nodetypes-basket[@action]=index

node123/basket.html

-
  name: 'node123/basket.html'
  uriPattern: '{node}/{--pipeu_factura_nodetypes-basket.@controller}.html'
  defaults:
    '@package': 'TYPO3.Neos'
    '@controller': 'Frontend\Node'
    '@format': 'html'
    '@action': 'show'
    '--pipeu_factura_nodetypes-basket':
      '@package': 'Pipeu.Factura.Nodetypes'
      '@controller': 'Basket'
      '@action': 'index'
      '@format': 'html'
  routeParts:
    node:
      handler: TYPO3\Neos\Routing\FrontendNodeRoutePartHandler
  appendExceedingArguments: TRUE

node123.html
?--pipeu_factura_nodetypes-basket[@package]=pipeu.factura.nodetypes
&--pipeu_factura_nodetypes-basket[@controller]=basket
&--pipeu_factura_nodetypes-basket[@action]=step1

node123/basket/step1.html

-
  name: 'node123/basket/step1.html'
  uriPattern: '{node}/{--pipeu_factura_nodetypes-basket.@controller}/{--pipeu_factura_nodetypes-basket.@action}.html'
  defaults:
    '@package': 'TYPO3.Neos'
    '@controller': 'Frontend\Node'
    '@format': 'html'
    '@action': 'show'
    '--pipeu_factura_nodetypes-basket':
      '@package': 'Pipeu.Factura.Nodetypes'
      '@controller': 'Basket'
      '@action': 'step1'
      '@format': 'html'
  routeParts:
    node:
      handler: TYPO3\Neos\Routing\FrontendNodeRoutePartHandler
  appendExceedingArguments: TRUE

node123.html
?--pipeu_factura_nodetypes-basket[@package]=pipeu.factura.nodetypes
&--pipeu_factura_nodetypes-basket[@controller]=document
&--pipeu_factura_nodetypes-basket[@action]=show
&--pipeu_factura_nodetypes-basket[node]=foo

node123/document/foo.html

-
  name: 'node123/document/foo.html'
  uriPattern: '{node}/{--pipeu_factura_nodetypes-basket.@controller}/{--pipeu_factura_nodetypes-basket.node}.html'
  defaults:
    '@package': 'TYPO3.Neos'
    '@controller': 'Frontend\Node'
    '@format': 'html'
    '@action': 'show'
    '--pipeu_factura_nodetypes-basket':
      '@package': 'Pipeu.Factura.Nodetypes'
      '@controller': 'Document'
      '@action': 'show'
      '@format': 'html'
  routeParts:
    node:
      handler: TYPO3\Neos\Routing\FrontendNodeRoutePartHandler
    '--pipeu_factura_nodetypes-basket.node':
      objectType: '\Your\Package\Domain\Model\Node'
      uriPattern: '{title}'
  appendExceedingArguments: TRUE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment