Project

General

Profile

Actions

Feature #99053

closed

Add route aspect fallback value handling

Added by Oliver Hader about 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
Start date:
2022-11-10
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:
On Location Sprint

Description

In case a route variable handled by an aspect mapper cannot be resolved, there should be a configurable fallback value.

Actions #1

Updated by Gerrit Code Review about 2 years ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76545

Actions #2

Updated by Oliver Hader about 2 years ago

  • Sprint Focus set to On Location Sprint
Actions #3

Updated by Gerrit Code Review about 2 years ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76545

Actions #4

Updated by Gerrit Code Review about 2 years ago

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76545

Actions #5

Updated by Gerrit Code Review about 2 years ago

Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76545

Actions #6

Updated by Georg Ringer about 2 years ago

can be tested with e.g. tt_address which is already compatible with v12 and following site config

routeEnhancers:
  Address:
    type: Extbase
    _limitToPages:
      - 8
      - 10
      - 11
    extension: TtAddress
    plugin: ListView
    routes:
      - routePath: '/{address_title}'
        _controller: 'Address::show'
        _arguments:
          address_title: address
      - routePath: '/{page-label}-{page}'
        _controller: 'Address::list'
        _arguments:
          page: 'currentPage'
    defaultController: 'Address::list'
    aspects:
      address_title:
        type: PersistedAliasMapper
        tableName: tt_address
        routeFieldName: slug
        fallbackValue: null
      page:
        type: StaticRangeMapper
        start: '1'
        end: '100'
      page-label:
        type: LocaleModifier
        default: seite
        localeMap:
          - locale: 'en_.*'
            value: page
          - locale: 'it_.*'
            value: pagina
          - locale: 'fr_.*'
            value: page
          - locale: 'es_.*'
            value: pagina
Actions #7

Updated by Gerrit Code Review about 2 years ago

Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76545

Actions #8

Updated by Gerrit Code Review almost 2 years ago

Patch set 6 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76545

Actions #9

Updated by Gerrit Code Review almost 2 years ago

Patch set 7 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76545

Actions #10

Updated by Gerrit Code Review almost 2 years ago

Patch set 8 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76545

Actions #11

Updated by Oliver Hader almost 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #12

Updated by Benni Mack almost 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF