Skip to content
Snippets Groups Projects
config.yaml 1.46 KiB
routeEnhancers:
  PageBrowserJobs:
    type: Plugin
    namespace: tx_sgjobs_pagebrowser
    routePath: '/{localizedSegment}/{currentPage}'
    aspects:
      localizedSegment:
        type: LocaleModifier
        default: page-jobs
        localeMap:
          - locale: 'de_DE.*'
            value: seite-jobs
      currentPage:
        type: StaticRangeMapper
        start: '0'
        end: '100'
    defaults:
      currentPage: '0'
  SgJobApplication:
    type: Extbase
    extension: SgJobs
    plugin: JobApplication
    routes:
      - routePath: '/{localizedSegment}/{jobTitle}'
        _controller: 'Joblist::applyForm'
        _arguments:
          jobTitle: jobId
      - routePath: '/{localizedSegment}'
        _controller: 'Joblist::apply'
    defaultController: 'Joblist::applyForm'
    aspects:
      jobTitle:
        type: PersistedAliasMapper
        tableName: tx_sgjobs_domain_model_job
        routeFieldName: path_segment
      localizedSegment:
        type: LocaleModifier
        default: apply
        localeMap:
          - locale: 'de_DE.*'
            value: bewerbung
  SgJobList:
    type: Extbase
    extension: SgJobs
    plugin: Joblist
    routes:
      - routePath: '/job/{jobTitle}'
        _controller: 'Joblist::index'
        _arguments:
          jobTitle: jobId
    defaultController: 'Joblist::index'
    aspects:
      jobTitle:
        type: PersistedAliasMapper
        tableName: tx_sgjobs_domain_model_job
        routeFieldName: path_segment