diff --git a/composer.json b/composer.json index 649e16c3..4e77ad2d 100644 --- a/composer.json +++ b/composer.json @@ -20,6 +20,7 @@ "drupal/core-composer-scaffold": "^9.1", "drupal/core-project-message": "^9.1", "drupal/core-recommended": "^9.1", + "drupal/imce": "^2.4", "drupal/migrate_devel": "2.x-dev@dev", "drupal/migrate_plus": "^5.1", "drupal/migrate_tools": "5.x-dev@dev", diff --git a/composer.lock b/composer.lock index 6d8c9e84..80f41176 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "3023c07d700668ccf2728db8bcb20bdd", + "content-hash": "deb7a05be82295f4c75de71a8588dc3c", "packages": [ { "name": "alchemy/zippy", @@ -5389,6 +5389,56 @@ "source": "https://git.drupalcode.org/project/imagemagick" } }, + { + "name": "drupal/imce", + "version": "2.4.0", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/imce.git", + "reference": "8.x-2.4" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/imce-8.x-2.4.zip", + "reference": "8.x-2.4", + "shasum": "2797d6a669b739490edd00c753303cd9263f8dc3" + }, + "require": { + "drupal/core": "^8.8 || ^9" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "8.x-2.4", + "datestamp": "1618251147", + "security-coverage": { + "status": "covered", + "message": "Covered by Drupal's security advisory policy" + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "See contributors", + "homepage": "https://www.drupal.org/node/2841111/committers", + "role": "Developer" + }, + { + "name": "ufku", + "homepage": "https://www.drupal.org/user/9910" + } + ], + "description": "Provides a file manager supporting personal folders.", + "homepage": "https://drupal.org/project/imce", + "support": { + "source": "https://git.drupalcode.org/project/imce", + "issues": "https://www.drupal.org/project/issues/imce?version=8.x" + } + }, { "name": "drupal/inline_entity_form", "version": "1.0.0-rc9", diff --git a/config/sync/core.entity_form_display.node.ressource.default.yml b/config/sync/core.entity_form_display.node.ressource.default.yml index a44e7d2c..f5eb016d 100644 --- a/config/sync/core.entity_form_display.node.ressource.default.yml +++ b/config/sync/core.entity_form_display.node.ressource.default.yml @@ -26,7 +26,9 @@ dependencies: - datetime - field_group - file + - filefield_sources - image + - imce - link - text - video_embed_field @@ -197,15 +199,55 @@ content: weight: 132 settings: progress_indicator: throbber - third_party_settings: { } + third_party_settings: + filefield_sources: + filefield_sources: + sources: + upload: true + reference: true + imce: false + remote: false + clipboard: false + attach: false + source_imce: + imce_mode: 0 + source_reference: + autocomplete: '1' + search_all_fields: '0' + source_attach: + path: file_attach + absolute: 0 + attach_mode: move + imce: + enabled: false type: file_generic region: content field_image: weight: 130 settings: - progress_indicator: throbber preview_image_style: thumbnail - third_party_settings: { } + progress_indicator: throbber + third_party_settings: + filefield_sources: + filefield_sources: + sources: + upload: true + reference: true + imce: false + remote: false + clipboard: false + attach: false + source_imce: + imce_mode: 1 + source_reference: + autocomplete: '1' + search_all_fields: '0' + source_attach: + path: sites/default/files + absolute: 1 + attach_mode: copy + imce: + enabled: false type: image_image region: content field_lien: diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index 5581b740..aba8da55 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -53,6 +53,7 @@ module: help: 0 honeypot: 0 image: 0 + imce: 0 inline_entity_form: 0 jquery_ui: 0 jquery_ui_button: 0 diff --git a/config/sync/field.field.node.ressource.field_fichier.yml b/config/sync/field.field.node.ressource.field_fichier.yml index b3ff5f4a..ed43e0a3 100644 --- a/config/sync/field.field.node.ressource.field_fichier.yml +++ b/config/sync/field.field.node.ressource.field_fichier.yml @@ -19,7 +19,7 @@ default_value: { } default_value_callback: '' settings: file_directory: '[date:custom:Y]-[date:custom:m]' - file_extensions: pdf + file_extensions: 'pdf docx ods doc' max_filesize: '' description_field: true handler: 'default:file' diff --git a/config/sync/imce.profile.admin.yml b/config/sync/imce.profile.admin.yml new file mode 100644 index 00000000..fd0ec009 --- /dev/null +++ b/config/sync/imce.profile.admin.yml @@ -0,0 +1,24 @@ +uuid: f7550181-6b0c-4391-80dd-4854616f53e9 +langcode: fr +status: true +dependencies: { } +_core: + default_config_hash: Yr2l9kFlT4Sa8875bhBZ0jy7QkYNxCKbx60FqGxELAg +id: admin +label: 'Admin profile' +description: 'Configuration for site administrators' +conf: + extensions: '*' + maxsize: !!float 0 + quota: !!float 0 + maxwidth: 0 + maxheight: 0 + replace: 0 + thumbnail_style: '' + thumbnail_grid_style: false + ignore_usage: false + folders: + - + path: . + permissions: + all: true diff --git a/config/sync/imce.profile.editor.yml b/config/sync/imce.profile.editor.yml new file mode 100644 index 00000000..c99f5362 --- /dev/null +++ b/config/sync/imce.profile.editor.yml @@ -0,0 +1,24 @@ +uuid: 4fccfd89-6409-4272-ac55-84b28c83e1ad +langcode: fr +status: true +dependencies: { } +_core: + default_config_hash: uLGxn83zQtCm36z5Tk6rnhKO2Bm0fafIrI8T9BAqVUs +id: editor +label: 'Editor profile' +description: 'Configuration for site editors' +conf: + extensions: 'jpg png gif pdf docx jpg jpeg ods doc' + maxsize: !!float 2 + quota: !!float 50 + maxwidth: 1024 + maxheight: 1024 + replace: 0 + thumbnail_style: thumbnail + thumbnail_grid_style: true + ignore_usage: false + folders: + - + path: . + permissions: + browse_files: true diff --git a/config/sync/imce.settings.yml b/config/sync/imce.settings.yml new file mode 100644 index 00000000..931aacde --- /dev/null +++ b/config/sync/imce.settings.yml @@ -0,0 +1,10 @@ +abs_urls: false +admin_theme: false +roles_profiles: + root: + public: admin + editeur: + public: editor +_core: + default_config_hash: 4FhrEwOM9yJ8neEoN77sxroTRBUXqRwap0KSJtFnYJs +langcode: fr diff --git a/config/sync/user.role.editeur.yml b/config/sync/user.role.editeur.yml index 7e91166e..217e7da9 100644 --- a/config/sync/user.role.editeur.yml +++ b/config/sync/user.role.editeur.yml @@ -12,6 +12,7 @@ permissions: - 'access files overview' - 'access site in maintenance mode' - 'access toolbar' + - 'administer node fields' - 'break content lock' - 'change own username' - 'create actualite content' diff --git a/config/sync/views.view.files.yml b/config/sync/views.view.files.yml index 7feb450b..f2fa1ec0 100644 --- a/config/sync/views.view.files.yml +++ b/config/sync/views.view.files.yml @@ -47,7 +47,7 @@ display: sort_asc_label: Asc sort_desc_label: Desc pager: - type: mini + type: full options: items_per_page: 50 offset: 0 @@ -56,6 +56,8 @@ display: tags: previous: '‹ Précédent' next: 'Suivant ›' + first: '« Premier' + last: 'Dernier »' expose: items_per_page: false items_per_page_label: 'Éléments par page' @@ -64,6 +66,7 @@ display: items_per_page_options_all_label: '- Tout -' offset: false offset_label: Décalage + quantity: 9 style: type: table options: @@ -701,7 +704,17 @@ display: entity_field: status sorts: { } title: Fichiers - header: { } + header: + result: + id: result + table: views + field: result + relationship: none + group_type: group + admin_label: '' + empty: false + content: 'Affichage de @start à @end sur @total' + plugin_id: result footer: { } empty: area_text_custom: @@ -751,6 +764,7 @@ display: defaults: pager: true relationships: false + fields: false relationships: fid: id: fid @@ -760,7 +774,551 @@ display: group_type: group admin_label: 'File usage' required: false - display_extenders: { } + display_extenders: + views_ef_fieldset: { } + fields: + fid: + id: fid + table: file_managed + field: fid + alter: + alter_text: false + make_link: false + absolute: false + trim: false + word_boundary: false + ellipsis: false + strip_tags: false + html: false + hide_empty: false + empty_zero: false + relationship: none + group_type: group + admin_label: '' + label: 'Identifiant (FID)' + exclude: true + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_alter_empty: true + plugin_id: field + entity_type: file + entity_field: fid + filename: + id: filename + table: file_managed + field: filename + relationship: none + group_type: group + admin_label: '' + label: Nom + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: false + ellipsis: false + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: file_link + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + entity_type: file + entity_field: filename + filemime: + id: filemime + table: file_managed + field: filemime + relationship: none + group_type: group + admin_label: '' + label: 'Type MIME' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + type: file_filemime + plugin_id: field + entity_type: file + entity_field: filemime + filesize: + id: filesize + table: file_managed + field: filesize + relationship: none + group_type: group + admin_label: '' + label: Taille + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + type: file_size + plugin_id: field + entity_type: file + entity_field: filesize + status: + id: status + table: file_managed + field: status + relationship: none + group_type: group + admin_label: '' + label: État + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + type: boolean + settings: + format: custom + format_custom_false: Temporaire + format_custom_true: Permanent + plugin_id: field + entity_type: file + entity_field: status + created: + id: created + table: file_managed + field: created + relationship: none + group_type: group + admin_label: '' + label: 'Date de transfert' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + type: timestamp + settings: + date_format: medium + custom_date_format: '' + timezone: '' + plugin_id: field + entity_type: file + entity_field: created + changed: + id: changed + table: file_managed + field: changed + relationship: none + group_type: group + admin_label: '' + label: 'Date de modification' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + type: timestamp + settings: + date_format: medium + custom_date_format: '' + timezone: '' + plugin_id: field + entity_type: file + entity_field: changed + count: + id: count + table: file_usage + field: count + relationship: fid + group_type: sum + admin_label: '' + label: 'Utilisé dans' + exclude: false + alter: + alter_text: false + text: '' + make_link: true + path: 'admin/content/files/usage/{{ fid }}' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + set_precision: false + precision: 0 + decimal: . + separator: ',' + format_plural: true + format_plural_string: !!binary MSBwbGFjZQNAY291bnQgcGxhY2Vz + prefix: '' + suffix: '' + plugin_id: numeric + rendered_entity: + id: rendered_entity + table: file_managed + field: rendered_entity + relationship: none + group_type: group + admin_label: '' + label: 'Entité rendue' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + view_mode: default + entity_type: file + plugin_id: rendered_entity + fid_1: + id: fid_1 + table: file_managed + field: fid + relationship: none + group_type: group + admin_label: '' + label: 'Identifiant (ID) de fichier' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: number_integer + settings: + thousand_separator: '' + prefix_suffix: true + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: file + entity_field: fid + plugin_id: field cache_metadata: contexts: - 'languages:language_content'