/
wordpress.yaml
450 lines (398 loc) · 11 KB
/
wordpress.yaml
1
2
3
4
5
6
7
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
33
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
##########################################################################
## ##
## WordPress Bundle configuration file ##
## ##
## Doc : https://metabolism.gitbook.io/symfony-wordpress-bundle/ ##
## ##
##########################################################################
wordpress:
#####################
## Gutenberg ##
#####################
gutenberg:
replace_reset_styles: true
remove_core_block: true
remove_block_library: true
load_remote_block_patterns: false
block_editor_style: '/build/bundle.css'
block_editor_script: '/blocks.js'
render_template: 'blocks/{name}.html.twig'
preview_image: true
#########################
## Image options ##
#########################
image:
compression: 90 #on the fly compression ratio
resize: #resize image on upload to save server space
max_width: 1920
max_height: 2160
###########################
## Admin interface ##
###########################
## Enable maintenance mode support
maintenance: true
## Hide pages from menu
remove_menu_page:
- edit-comments.php #Comments
# - index.php #Dashboard
# - jetpack #Jetpack
# - upload.php #Media
# - themes.php #Appearance
# - plugins.php #Plugins
# - users.php #Users
# - tools.php #Tools
# - options-general.php #Settings
## Hide page from submenu
remove_submenu_page:
#themes.php: nav-menus.php
## Customize WYSIWYG Editor TinyMCE Buttons
##https://www.tiny.cloud/docs/advanced/editor-control-identifiers/
mce_buttons:
- formatselect
- bold
- italic
- underline
- sup
- strikethrough
- superscript
- subscript
- bullist
- numlist
- blockquote
- hr
- table
- alignleft
- aligncenter
- alignright
- alignjustify
- link
- unlink
- wp_more
- spellchecker
- wp_adv
- dfw
#editor_style: backoffice.css
##################
## System ##
##################
## Add blog support
support:
- page #enable page
- post #enable post
- tag #enable tag taxonomy for post
- category #enable category taxonomy for post
## Add post type support
## https://developer.wordpress.org/reference/functions/post_type_supports/
post_type_support:
page: excerpt #add excerpt to page
## Add theme support
## https://developer.wordpress.org/reference/functions/add_theme_support/
theme_support:
- thumbnail #add thumbnails to post
#- post-formats:
# - video
# - gallery
## Use Wordpress as a headless cms
#headless:
# mapping: true
## Multisite configuration
# multisite:
# shared_media: true
# clone_post: true
## Declare constant
#define:
# disallow_file_edit: false
###############
## ACF ##
###############
acf:
settings:
use_entity: true #add new optimised return format
autoload: true #autoload options
user_settings:
gallery_height: 210
options_page: #add option pages https://www.advancedcustomfields.com/resources/options-page/
- 'Global'
- 'Translations'
input:
lock_max_length: false
toolbars: #customize wysiwyg toolbar
Full:
1:
- formatselect
- bold
- italic
- blockquote
- superscript
- subscript
- bullist
- numlist
- table
- alignjustify
- pastetext
- removeformat
- link
- wp_adv
- fullscreen
2:
- undo
- redo
- hr
- underline
- strikethrough
- forecolor
- removeformat
- charmap
- outdent
- indent
Basic:
1:
- bold
- italic
- blockquote
- superscript
- subscript
- bullist
- numlist
- link
- alignjustify
- pastetext
- removeformat
- fullscreen
################
## Menu ##
################
menu:
depth: 1
register:
footer: Footer
header: Header
###################
## Sidebar ##
###################
sidebar: # https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar
footer:
name : Footer
description : 'Add widgets here to appear in your footer.'
before_widget : '<section id="%1$s" class="widget %2$s">'
after_widget : '</section>'
before_title : '<h2 class="widget-title">'
after_title : '</h2>'
##########################
## New block ##
##########################
block:
title-text:
title: Title with text
description: Title with text
supports:
align_text: 'left'
#multiple: false
icon: 'editor-alignleft'
post_types:
- page
- guide
##########################
## New post types ##
##########################
post_type: # https://developer.wordpress.org/reference/functions/register_post_type/
guide:
menu_icon: book #https://developer.wordpress.org/resource/dashicons/
has_archive: true
#enable_for_blogs:
# - 1
#disable_for_blogs:
# - 2#
#has_options: true #add acf page option to post type menu
capability_type: post
#publicly_queryable: false
## options for archive page
#posts_per_page: 11
#orderby: name #https://developer.wordpress.org/reference/classes/wp_query/#order-orderby-parameters
#order: ASC
show_in_rest: true
#template:
# - - acf/title-text
# - lock:
# move: true
# remove: true
supports:
- title
- excerpt
- thumbnail
- editor
#- author
#- excerpt
#- trackbacks
#- custom-fields
#- comments
#- revisions
#- page-attributes
#- post-formats
#columns: #add new column to post listing, thumbnail|meta
# - thumbnail
#taxonomies:
# - category
#labels:
# name: 'Guides'
# singular_name: 'Guide'
# all_items: 'Tous les guides'
# edit_item: 'Editer le guide'
# view_item: 'Voir le guide'
# update_item: 'Mettre à jour le guide'
# add_new_item: 'Ajouter un guide'
# new_item_name: 'Nouveau guide'
# search_items: 'Rechercher un guide'
# popular_items: 'Guides populaires'
# not_found: 'Aucun guide trouvé'
##########################
## New taxonomies ##
##########################
taxonomy: # https://developer.wordpress.org/reference/functions/register_taxonomy/
item:
## options for archive page
#posts_per_page: 11
#orderby: name #https://developer.wordpress.org/reference/classes/wp_term_query/__construct/
#order: ASC
#radio: true #display terms selection as radio instead of checkbox
#publicly_queryable: false
object_type:
- guide
#capabilities:
# manage_terms: 'do_not_allow'
# edit_terms: 'do_not_allow'
# delete_terms: 'do_not_allow'
# assign_terms: 'edit_posts'
#labels:
# name: 'Catégories'
# singular_name: 'Catégorie'
# all_items: 'Toutes les catégories'
# edit_item: 'Editer la catégorie'
# view_item: 'Voir la catégorie'
# update_item: 'Mettre à jour la catégorie'
# add_new_item: 'Ajouter une catégorie'
# new_item_name: 'Nouvelle catégorie'
# search_items: 'Rechercher une catégorie'
# popular_items: 'Catégories populaires'
# not_found: 'Aucune catégorie trouvée'
####################################
## Templates/States/Formats ##
####################################
## Add post and taxonomy templates
#template:
# page:
# coming_soon: 'Coming Soon'
# not_found: '404'
# post:
# video: 'Video'
# taxonomy:
# item:
# edito: 'Edito'
# podcast: 'Podcast'
# reportage: 'Reportage'
# video: 'Video'
## Add page states like "homepage"
#page_states:
#archive_guide: 'Guide archive'
#################################
## Database table viewer ##
#################################
#table:
# newsletter:
# page_title: Newsletter
# menu_title: Newsletter
# column_title: id
# export: false
# columns:
# name: Name
# email: Email
# company: Company
# type: Type
# contact:
# page_title: Contact
# menu_title: Contact
# column_title: id
# columns:
# name: Name
# email: Email
# company: Company
# request: Request
#############################################
## Add Roles ##
## ##
## To reload role please go to ##
## /wp-admin/index.php?reload_role=1 ##
## ##
#############################################
#role:
# translator:
# display_name: Translator
# redirect_to: edit.php?post_type=guide
# #inherit: editor
# capabilities:
# read: true
# publish: false
# manage_items: true
# edit_items: true
#
# edit_blocks: false
#
# manage_categories: true
# edit_category: true
# delete_category: false
# assign_category: false
#
# edit_others_pages: true
# read_page: true
# edit_pages: true
# publish_pages: false
# edit_published_pages: true
#
# edit_others_posts: true
# read_post: true
# edit_posts: true
# publish_posts: false
# edit_published_posts: true
#
# acf_edit_taxonomy: false
# acf_edit_layout: false
# acf_edit_relationship: false
# acf_edit_repeater: false
# acf_edit_true-false: false
# acf_edit_radio: false
# acf_edit_select: false
# acf_edit_image: false
# acf_edit_file: false
# acf_edit_link: false
# acf_edit_post-object: false
############################
## Plugins specific ##
############################
#plugins:
# redirection:
# redirection_role: edit_others_posts
#########################
## Optimisations ##
#########################
rewrite_rules:
remove:
- author
- attachment
- embed
- trackback
- comment
# - feed
####################
## Security ##
####################
security:
rest_api: false
xmlrpc: false
pings: false
disable_update: true
##################
## Search ##
##################
#search: # change search settings
# use_metafields: false
# posts_per_page: 12