Skip to content
Snippets Groups Projects
config.yaml 869 B
routeEnhancers:
  PageBrowserNews:
    type: Plugin
    namespace: tx_sgnews_pagebrowser
    routePath: '/{localizedSegment}/{currentPage}'
    defaults:
      currentPage: '0'
    aspects:
      currentPage:
        type: StaticRangeMapper
        start: '1'
        end: '1000'
      localizedSegment:
        type: LocaleModifier
        default: page
        localeMap:
          -
            locale: 'de_DE.*'
            value: seite
  NewsByAuthor:
    type: Extbase
    extension: SgNews
    plugin: NewsByAuthor
    routes:
      -
        routePath: '/{authorTitle}'
        _controller: 'NewsByAuthor::list'
        _arguments:
          authorTitle: authorId
    defaultController: 'NewsByAuthor::list'
    aspects:
      authorTitle:
        type: PersistedAliasMapper
        tableName: tx_sgnews_domain_model_author
        routeFieldName: path_segment