Skip to content

Commit 20d8803

Browse files
committed
update config:dump-reference
1 parent 84a1786 commit 20d8803

File tree

2 files changed

+173
-93
lines changed

2 files changed

+173
-93
lines changed

docs/dev/reference/config.md

Lines changed: 73 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,16 @@ $ vendor/bin/contao-console config:dump-reference contao
1515
```yaml
1616
# Default configuration for extension with alias: "contao"
1717
contao:
18-
19-
# Absolute path to the web directory. Make sure to use the %kernel.project_dir% parameter for the absolute path prefix.
20-
web_dir: '…/web' # Example: %kernel.project_dir%/web
21-
22-
# Whether or not to prefix URLs with the root page language.
23-
prepend_locale: false
24-
encryption_key: '%kernel.secret%'
25-
url_suffix: .html
26-
27-
# Folder used by the file manager.
28-
upload_path: files
29-
30-
# Entry point script that bypasses the front end cache for preview features, if necessary. The Contao Managed Edition uses "preview.php" here, but it can be customized for a regular Symfony application.
31-
preview_script: ''
3218
csrf_cookie_prefix: csrf_
3319
csrf_token_name: contao_csrf_token
20+
encryption_key: '%kernel.secret%'
3421

35-
# Enables pretty error screens, for which custom templates can be created.
36-
pretty_error_screens: false
37-
38-
# The error reporting level set when the framework is initialized. Defaults to E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_USER_DEPRECATED.
22+
# The error reporting level set when the framework is initialized. Defaults to E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_USER_DEPRECATED.
3923
error_level: 8183
4024

25+
# Allows to set TL_CONFIG variables, overriding settings stored in localconfig.php. Changes in the Contao back end will not have any effect.
26+
localconfig: ~
27+
4128
# Allows to configure which languages can be used within Contao. Defaults to all languages for which a translation exists.
4229
locales:
4330

@@ -52,35 +39,31 @@ contao:
5239
- ja
5340
- lv
5441
- nl
55-
- pl
42+
- pt
5643
- ru
57-
- sl
5844
- sr
5945
- zh
60-
image:
6146

62-
# When true, images will always be regenerated when requested. This also disables deferred image resizing.
63-
bypass_cache: false
64-
target_path: null # Deprecated (Use the "contao.image.target_dir" parameter instead.)
47+
# Whether or not to add the page language to the URL.
48+
prepend_locale: false
6549

66-
# The target directory for the cached images processed by Contao.
67-
target_dir: '…/assets/images'
68-
valid_extensions:
50+
# Show customizable, pretty error screens instead of the default PHP error messages.
51+
pretty_error_screens: false
6952

70-
# Defaults:
71-
- jpg
72-
- jpeg
73-
- gif
74-
- png
75-
- tif
76-
- tiff
77-
- bmp
78-
- svg
79-
- svgz
80-
- webp
53+
# An optional entry point script that bypasses the front end cache for previewing changes (e.g. preview.php).
54+
preview_script: ''
8155

82-
# Contao automatically detects the best Imagine service out of Gmagick, Imagick and Gd (in this order). To use a specific service, set its service ID here.
83-
imagine_service: null
56+
# The folder used by the file manager.
57+
upload_path: files
58+
editable_files: 'css,csv,html,ini,js,json,less,md,scss,svg,svgz,txt,xliff,xml,yml,yaml'
59+
url_suffix: .html
60+
61+
# Absolute path to the web directory. Defaults to %kernel.project_dir%/web.
62+
web_dir: '%kernel.project_dir%/web'
63+
image:
64+
65+
# Bypass the image cache and always regenerate images when requested. This also disables deferred image resizing.
66+
bypass_cache: false
8467
imagine_options:
8568
jpeg_quality: 80
8669
jpeg_sampling_factors:
@@ -95,26 +78,30 @@ contao:
9578
webp_lossless: ~
9679
interlace: plane
9780

98-
# Allows to reject images uploaded via Contao's file manager, if they exceed the dimensions of localconfig.gdMaxImgWidth and localconfig.gdMaxImgHeight.
81+
# Contao automatically uses an Imagine service out of Gmagick, Imagick and Gd (in this order). Set a service ID here to override.
82+
imagine_service: null
83+
84+
# Reject uploaded images exceeding the localconfig.gdMaxImgWidth and localconfig.gdMaxImgHeight dimensions.
9985
reject_large_uploads: false
10086

101-
# This allows to define image sizes directly in the configuration in addition to the Contao back end (tl_image_size table).
87+
# Allows to define image sizes in the configuration file in addition to in the Contao back end.
10288
sizes:
10389

10490
# Prototype
10591
name:
10692
width: ~
10793
height: ~
108-
resizeMode: ~ # One of "crop"; "box"; "proportional"
94+
resize_mode: ~ # One of "crop"; "box"; "proportional"
10995
zoom: ~
110-
cssClass: ~
96+
css_class: ~
97+
lazy_loading: ~
11198
densities: ~
11299
sizes: ~
113100

114101
# If the output dimensions match the source dimensions, the image will not be processed. Instead, the original file will be used.
115-
skipIfDimensionsMatch: ~
102+
skip_if_dimensions_match: ~
116103

117-
# Allows to convert an image format to another, or to provide additional image formats for an image (e.g. WebP).
104+
# Allows to convert one image format to another or to provide additional image formats for an image (e.g. WebP).
118105
formats:
119106

120107
# Examples:
@@ -132,17 +119,54 @@ contao:
132119
-
133120
width: ~
134121
height: ~
135-
resizeMode: ~ # One of "crop"; "box"; "proportional"
122+
resize_mode: ~ # One of "crop"; "box"; "proportional"
136123
zoom: ~
137124
media: ~
138125
densities: ~
139126
sizes: ~
127+
128+
# The target directory for the cached images processed by Contao.
129+
target_dir: '%kernel.project_dir%/assets/images'
130+
valid_extensions:
131+
132+
# Defaults:
133+
- jpg
134+
- jpeg
135+
- gif
136+
- png
137+
- tif
138+
- tiff
139+
- bmp
140+
- svg
141+
- svgz
142+
- webp
140143
security:
141144
two_factor:
142145
enforce_backend: false
146+
search:
143147

144-
# Allows to set TL_CONFIG variables. Note that any property set here will override the localconfig.php file, so changing these in the Contao back end will not have any effect.
145-
localconfig: ~
148+
# The default search indexer, which indexes pages in the database.
149+
default_indexer:
150+
enable: true
151+
152+
# Enables indexing of protected pages.
153+
index_protected: false
154+
155+
# The search index listener can index valid and delete invalid responses upon every request. You may limit it to one of the features or disable it completely.
156+
listener:
157+
158+
# Enables indexing successful responses.
159+
index: true
160+
161+
# Enables deleting unsuccessful responses from the index.
162+
delete: true
163+
crawl:
164+
165+
# Additional URIs to crawl. By default, only the ones defined in the root pages are crawled.
166+
additional_uris: []
167+
168+
# Allows to configure the default HttpClient options (useful for proxy settings, SSL certificate validation and more).
169+
default_http_client_options: []
146170
```
147171
148172

docs/manual/system/settings.de.md

Lines changed: 100 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ mehr Logging im Debug Modus). Außerdem committest du die `config.yml` im Gegens
208208
[Repository](https://de.wikipedia.org/wiki/Repository).
209209

210210
{{% notice note %}}
211-
Ab der Version 4.8 von Contao befindet sich die Datei im Ordner `config`.
211+
Ab der Version **4.8** von Contao befindet sich die Datei im Ordner `config`.
212212
{{% /notice %}}
213213

214214
Über die Kommandozeile kommst du an die Standard-Konfiguration für Contao:
@@ -220,57 +220,55 @@ vendor/bin/contao-console config:dump-reference contao
220220
```yaml
221221
# Default configuration for extension with alias: "contao"
222222
contao:
223-
web_dir: /contao/web
224-
prepend_locale: false
225-
encryption_key: '%kernel.secret%'
226-
url_suffix: .html
227-
upload_path: files
228-
preview_script: ''
229223
csrf_cookie_prefix: csrf_
230224
csrf_token_name: contao_csrf_token
231-
pretty_error_screens: false
225+
encryption_key: '%kernel.secret%'
226+
227+
# The error reporting level set when the framework is initialized. Defaults to E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_USER_DEPRECATED.
232228
error_level: 8183
229+
230+
# Allows to set TL_CONFIG variables, overriding settings stored in localconfig.php. Changes in the Contao back end will not have any effect.
231+
localconfig: ~
232+
233+
# Allows to configure which languages can be used within Contao. Defaults to all languages for which a translation exists.
233234
locales:
234235
235236
# Defaults:
236237
- en
237-
- pl
238-
- ja
239-
- it
240238
- cs
241-
- ru
242-
- pt
243-
- zh
244-
- sr
245-
- nl
246239
- de
247-
- fr
248240
- es
249241
- fa
250-
image:
251-
bypass_cache: false
252-
target_path: null
253-
target_dir: /contao/assets/images
254-
valid_extensions:
242+
- fr
243+
- it
244+
- ja
245+
- lv
246+
- nl
247+
- pt
248+
- ru
249+
- sr
250+
- zh
255251
256-
# Defaults:
257-
- jpg
258-
- jpeg
259-
- gif
260-
- png
261-
- tif
262-
- tiff
263-
- bmp
264-
- svg
265-
- svgz
266-
- webp
252+
# Whether or not to add the page language to the URL.
253+
prepend_locale: false
267254
268-
# As of Contao 4.6, Contao automatically detects the best Imagine service out of Gmagick, Imagick and Gd (in this order).
269-
# To use a specific service, set its service ID here:
270-
# - Gmagick: "contao.image.imagine.gmagick"
271-
# - Imagick: "contao.image.imagine.imagick"
272-
# - Gd : "contao.image.imagine.gd"
273-
imagine_service: null
255+
# Show customizable, pretty error screens instead of the default PHP error messages.
256+
pretty_error_screens: false
257+
258+
# An optional entry point script that bypasses the front end cache for previewing changes (e.g. preview.php).
259+
preview_script: ''
260+
261+
# The folder used by the file manager.
262+
upload_path: files
263+
editable_files: 'css,csv,html,ini,js,json,less,md,scss,svg,svgz,txt,xliff,xml,yml,yaml'
264+
url_suffix: .html
265+
266+
# Absolute path to the web directory. Defaults to %kernel.project_dir%/web.
267+
web_dir: '%kernel.project_dir%/web'
268+
image:
269+
270+
# Bypass the image cache and always regenerate images when requested. This also disables deferred image resizing.
271+
bypass_cache: false
274272
imagine_options:
275273
jpeg_quality: 80
276274
jpeg_sampling_factors:
@@ -284,21 +282,40 @@ contao:
284282
webp_quality: ~
285283
webp_lossless: ~
286284
interlace: plane
285+
286+
# Contao automatically uses an Imagine service out of Gmagick, Imagick and Gd (in this order). Set a service ID here to override.
287+
imagine_service: null
288+
289+
# Reject uploaded images exceeding the localconfig.gdMaxImgWidth and localconfig.gdMaxImgHeight dimensions.
287290
reject_large_uploads: false
291+
292+
# Allows to define image sizes in the configuration file in addition to in the Contao back end.
288293
sizes:
289294
290295
# Prototype
291296
name:
292297
width: ~
293298
height: ~
294-
resizeMode: ~ # One of "crop"; "box"; "proportional"
299+
resize_mode: ~ # One of "crop"; "box"; "proportional"
295300
zoom: ~
296-
cssClass: ~
301+
css_class: ~
302+
lazy_loading: ~
297303
densities: ~
298304
sizes: ~
299-
skipIfDimensionsMatch: ~
305+
306+
# If the output dimensions match the source dimensions, the image will not be processed. Instead, the original file will be used.
307+
skip_if_dimensions_match: ~
308+
309+
# Allows to convert one image format to another or to provide additional image formats for an image (e.g. WebP).
300310
formats:
301311
312+
# Examples:
313+
jpg:
314+
- webp
315+
- jpg
316+
gif:
317+
- png
318+
302319
# Prototype
303320
source: []
304321
items:
@@ -307,15 +324,54 @@ contao:
307324
-
308325
width: ~
309326
height: ~
310-
resizeMode: ~ # One of "crop"; "box"; "proportional"
327+
resize_mode: ~ # One of "crop"; "box"; "proportional"
311328
zoom: ~
312329
media: ~
313330
densities: ~
314331
sizes: ~
332+
333+
# The target directory for the cached images processed by Contao.
334+
target_dir: '%kernel.project_dir%/assets/images'
335+
valid_extensions:
336+
337+
# Defaults:
338+
- jpg
339+
- jpeg
340+
- gif
341+
- png
342+
- tif
343+
- tiff
344+
- bmp
345+
- svg
346+
- svgz
347+
- webp
315348
security:
316349
two_factor:
317350
enforce_backend: false
318-
localconfig: ~
351+
search:
352+
353+
# The default search indexer, which indexes pages in the database.
354+
default_indexer:
355+
enable: true
356+
357+
# Enables indexing of protected pages.
358+
index_protected: false
359+
360+
# The search index listener can index valid and delete invalid responses upon every request. You may limit it to one of the features or disable it completely.
361+
listener:
362+
363+
# Enables indexing successful responses.
364+
index: true
365+
366+
# Enables deleting unsuccessful responses from the index.
367+
delete: true
368+
crawl:
369+
370+
# Additional URIs to crawl. By default, only the ones defined in the root pages are crawled.
371+
additional_uris: []
372+
373+
# Allows to configure the default HttpClient options (useful for proxy settings, SSL certificate validation and more).
374+
default_http_client_options: []
319375
```
320376

321377
{{% notice warning %}}

0 commit comments

Comments
 (0)