From a159bf959f507f9e03440ab912107bd1004e444b Mon Sep 17 00:00:00 2001 From: DonRichards Date: Tue, 24 Oct 2023 16:57:52 -0400 Subject: [PATCH] Add title length --- composer.json | 1 + composer.lock | 60 ++++++++++++++++++- config/sync/core.extension.yml | 2 + ...ld.field.media.image.field_media_image.yml | 9 ++- .../field.storage.media.field_media_image.yml | 4 ++ 5 files changed, 73 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 2d69881f2..7585f7eef 100644 --- a/composer.json +++ b/composer.json @@ -116,6 +116,7 @@ "drupal/rest_oai_pmh": "^2.0@beta", "drupal/search_api_solr": "^4.2.10", "drupal/taxonomy_manager": "^2.0", + "drupal/title_length": "^2.0@RC", "drupal/transliterate_filenames": "^2.0", "drupal/twig_tweak": "^3.2", "drupal/view_mode_switch": "^2.0", diff --git a/composer.lock b/composer.lock index f51c17385..408bbb04d 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": "13e6587fe805dab6003a0b60aa44dc9c", + "content-hash": "41690edad0cfb29e6781dcad42fb2db6", "packages": [ { "name": "academicpuma/citeproc-php", @@ -5200,6 +5200,63 @@ "issues": "https://www.drupal.org/project/issues/taxonomy_manager" } }, + { + "name": "drupal/title_length", + "version": "2.0.0-rc0", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/title_length.git", + "reference": "2.0.0-rc0" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/title_length-2.0.0-rc0.zip", + "reference": "2.0.0-rc0", + "shasum": "e43902448fa309307c0a5a463a53da39e8e2924a" + }, + "require": { + "drupal/core": "^8 || ^9 || ^10" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "2.0.0-rc0", + "datestamp": "1657000016", + "security-coverage": { + "status": "not-covered", + "message": "RC releases are not covered by Drupal security advisories." + } + }, + "drush": { + "services": { + "drush.services.yml": "^10" + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0+" + ], + "authors": [ + { + "name": "cbccharlie", + "homepage": "https://www.drupal.org/user/616836" + }, + { + "name": "maximpodorov", + "homepage": "https://www.drupal.org/user/515310" + } + ], + "description": "Increases maximum length of node titles and taxonomy term names.", + "homepage": "https://www.drupal.org/project/title_length", + "keywords": [ + "Drupal" + ], + "support": { + "source": "http://cgit.drupalcode.org/title_length", + "issues": "https://www.drupal.org/project/issues/title_length" + } + }, { "name": "drupal/token", "version": "1.12.0", @@ -14463,6 +14520,7 @@ "drupal/groupmedia": 5, "drupal/reference_value_pair": 15, "drupal/rest_oai_pmh": 10, + "drupal/title_length": 5, "drupal/views_field_view": 10, "islandora-rdm/islandora_fits": 20, "jhu-idc/idc_ui_theme_boots": 20 diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index 475d9a4bc..4c9a1ff05 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -92,6 +92,7 @@ module: migrate_tools: 0 mysql: 0 node: 0 + node_title_length: 0 openseadragon: 0 options: 0 page_cache: 0 @@ -115,6 +116,7 @@ module: taxonomy: 0 taxonomy_manager: 0 text: 0 + title_length: 0 token: 0 toolbar: 0 tour: 0 diff --git a/config/sync/field.field.media.image.field_media_image.yml b/config/sync/field.field.media.image.field_media_image.yml index 8ef0cb953..71b5575d4 100644 --- a/config/sync/field.field.media.image.field_media_image.yml +++ b/config/sync/field.field.media.image.field_media_image.yml @@ -6,7 +6,12 @@ dependencies: - field.storage.media.field_media_image - media.type.image module: + - filehash - image +third_party_settings: + filehash: + dedupe: 0 + dedupe_original: false _core: default_config_hash: idm-WOGrZKncw6SH8HGFJ6IzrgFpS0ifbdaK1x-81SA id: media.image.field_media_image @@ -23,7 +28,7 @@ settings: handler: 'default:file' handler_settings: { } file_directory: '[date:custom:Y]-[date:custom:m]' - file_extensions: 'png gif jpg jpeg' + file_extensions: 'png gif jpg jpeg webp' max_filesize: '' max_resolution: '' min_resolution: '' @@ -32,7 +37,7 @@ settings: title_field: false title_field_required: false default_image: - uuid: null + uuid: '' alt: '' title: '' width: null diff --git a/config/sync/field.storage.media.field_media_image.yml b/config/sync/field.storage.media.field_media_image.yml index 3b9f5f8d6..cd7a69ccc 100644 --- a/config/sync/field.storage.media.field_media_image.yml +++ b/config/sync/field.storage.media.field_media_image.yml @@ -3,9 +3,13 @@ langcode: en status: true dependencies: module: + - field_permissions - file - image - media +third_party_settings: + field_permissions: + permission_type: public _core: default_config_hash: NslRY6r63iEhkDXbs8n7v_iOBxPqaKhstX1Sb0HA7x0 id: media.field_media_image