config.yaml 4.53 KB
Newer Older
Thomas Löffler's avatar
Thomas Löffler committed
1
2
3
4
5
6
base: 'https://typo3.org'
baseVariants:
  -
    base: 'https://typo3.org.ddev.site'
    condition: 'applicationContext == "Development"'
  -
7
    base: 'https://typo3.dev'
Thomas Löffler's avatar
Thomas Löffler committed
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
    condition: 'applicationContext == "Testing"'
  -
    base: 'https://typo3.org'
    condition: 'applicationContext == "Production"'
errorHandling:
  -
    errorCode: '404'
    errorHandler: Page
    errorContentSource: 't3://page?uid=404'
  -
    errorCode: '403'
    errorHandler: Page
    errorContentSource: 't3://page?uid=720'
languages:
  -
    title: English
    enabled: true
    base: /
    typo3Language: default
    locale: en_US.UTF-8
    iso-639-1: en
    navigationTitle: English
    hreflang: en-US
    direction: ''
    flag: gb
33
    solr_core_read: 'core_en'
Thomas Löffler's avatar
Thomas Löffler committed
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
    languageId: '0'
rootPageId: 1
routeEnhancers:
  News:
    type: Extbase
    extension: News
    plugin: Pi1
    routes:
      -
        routePath: '/{page}'
        _controller: 'News::list'
        _arguments:
          page: '@widget_0/currentPage'
        requirements:
          page: \d+
        defaults:
          category-name: all
      -
        routePath: '/{news-title}'
        _controller: 'News::detail'
        _arguments:
          news-title: news
      -
        routePath: '/{category-name}'
        _controller: 'News::list'
        _arguments:
          category-name: overwriteDemand/categories
      -
        routePath: '/{category-name}/{page}'
        _controller: 'News::list'
        _arguments:
          category-name: overwriteDemand/categories
          page: '@widget_0/currentPage'
      -
        routePath: '/{tag-name}'
        _controller: 'News::list'
        _arguments:
          tag-name: overwriteDemand/tags
    defaultController: 'News::list'
    defaults:
      page: '0'
    aspects:
      news-title:
        type: PersistedAliasMapper
        tableName: tx_news_domain_model_news
        routeFieldName: path_segment
      page:
        type: StaticRangeMapper
        start: '1'
        end: '100'
      category-name:
        type: PersistedAliasMapper
        tableName: sys_category
        routeFieldName: slug
      tag-name:
        type: PersistedAliasMapper
        tableName: tx_news_domain_model_tag
        routeFieldName: slug
  Membership:
    type: Extbase
    extension: t3o_membership
    plugin: List
    routes:
      -
        routePath: '/{membership-name}'
        _controller: 'Member::list'
        _arguments:
          membership-name: membership
    aspects:
      membership-name:
        type: PersistedAliasMapper
        tableName: tx_t3omembership_domain_model_membership
        routeFieldName: slug
107
108
109
110
111
112
  EventPlugin:
    type: Extbase
    extension: SfEventMgt
    plugin: Pievent
    routes:
      - { routePath: '/', _controller: 'Event::list' }
113
      - { routePath: '/page/{page}', _controller: 'Event::list', _arguments: {'page': '@widget_0/currentPage'}, _requirements: {'page': \d+} }
114
      - { routePath: '/{event_category}/all', _controller: 'Event::list', _arguments: {'event_category': 'overwriteDemand/category'} }
115
      - { routePath: '/{event_category}/all/page/{page}', _controller: 'Event::list', _arguments: {'event_category': 'overwriteDemand/category', 'page': '@widget_0/currentPage'}, _requirements: {'page': \d+} }
116
117
118
119
120
121
122
123
      - { routePath: '/{event_title}', _controller: 'Event::detail', _arguments: {'event_title': 'event'} }
      - { routePath: '/{event_title}/ical', _controller: 'Event::icalDownload', _arguments: {'event_title': 'event'} }
    defaultController: 'Event::list'
    aspects:
      event_title:
        type: PersistedAliasMapper
        tableName: 'tx_sfeventmgt_domain_model_event'
        routeFieldName: 'slug'
124
125
126
127
      event_category:
        type: PersistedAliasMapper
        tableName: 'sys_category'
        routeFieldName: 'slug'
128
129
130
131
      page:
        type: StaticRangeMapper
        start: '1'
        end: '100'
Thomas Löffler's avatar
Thomas Löffler committed
132
133
134
135
136
137
138
139
140
141
routes:
  -
    route: robots.txt
    type: staticText
    content: "User-agent: *\r\nAllow: /\r\n\r\n# folders\r\nDisallow: /typo3/\r\nDisallow: /typo3conf/\r\nAllow: /typo3conf/ext/\r\nAllow: /typo3temp/\r\n\r\n# parameters\r\nDisallow: /*?id=*               # non speaking URLs\r\nDisallow: /*cHash               # no cHash\r\nDisallow: /*tx_powermail_pi1    # no powermail thanks pages\r\nDisallow: /*tx_form_formframework    # no forms\r\n\r\n# sitemap\r\nSitemap: https://typo3.org/?type=1533906435\r\n"
  -
    route: sitemap.xml
    type: uri
    source: 'https://typo3.org/?type=1533906435'
solr_enabled_read: true
Thomas Löffler's avatar
Thomas Löffler committed
142
solr_host_read: solr
Thomas Löffler's avatar
Thomas Löffler committed
143
144
145
146
solr_path_read: /solr/
solr_port_read: 8983
solr_scheme_read: http
solr_use_write_connection: false