actualités

This commit is contained in:
Bachir Soussi Chiadmi 2024-07-04 16:36:48 +02:00
parent 792d700355
commit 5fda2e9cf1
27 changed files with 951 additions and 1 deletions

View File

@ -20,6 +20,7 @@
"drupal/core-composer-scaffold": "^10.2", "drupal/core-composer-scaffold": "^10.2",
"drupal/core-project-message": "^10.2", "drupal/core-project-message": "^10.2",
"drupal/core-recommended": "^10.2", "drupal/core-recommended": "^10.2",
"drupal/image_delta_formatter": "^1.2",
"drupal/image_field_caption": "^2.0", "drupal/image_field_caption": "^2.0",
"drupal/linked_field": "^1.5", "drupal/linked_field": "^1.5",
"drupal/manage_display": "^3.0", "drupal/manage_display": "^3.0",

54
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "5a4503115ae826af4abfbc3363d6b6e5", "content-hash": "79223df96df990c3b850f7ecb6441e64",
"packages": [ "packages": [
{ {
"name": "asm89/stack-cors", "name": "asm89/stack-cors",
@ -4318,6 +4318,58 @@
"issues": "https://www.drupal.org/project/issues/honeypot" "issues": "https://www.drupal.org/project/issues/honeypot"
} }
}, },
{
"name": "drupal/image_delta_formatter",
"version": "1.2.0",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/image_delta_formatter.git",
"reference": "8.x-1.2"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/image_delta_formatter-8.x-1.2.zip",
"reference": "8.x-1.2",
"shasum": "e236790ad92bdbc8a0ba0aa042a8580d8ce9f425"
},
"require": {
"drupal/core": "^8 || ^9 || ^10"
},
"type": "drupal-module",
"extra": {
"drupal": {
"version": "8.x-1.2",
"datestamp": "1685543777",
"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": "bojanz",
"homepage": "https://www.drupal.org/user/86106"
},
{
"name": "fgm",
"homepage": "https://www.drupal.org/user/27985"
},
{
"name": "jsacksick",
"homepage": "https://www.drupal.org/user/972218"
}
],
"description": "Provides a formatter that displays a specific delta of a multivalue imagefield.",
"homepage": "https://www.drupal.org/project/image_delta_formatter",
"support": {
"source": "https://git.drupalcode.org/project/image_delta_formatter"
}
},
{ {
"name": "drupal/image_field_caption", "name": "drupal/image_field_caption",
"version": "2.0.1", "version": "2.0.1",

View File

@ -0,0 +1,172 @@
uuid: 55353fd6-0001-48bb-b4b8-4a52ec7b184a
langcode: fr
status: true
dependencies:
config:
- field.field.node.actualite.body
- field.field.node.actualite.field_date
- field.field.node.actualite.field_fichiers
- field.field.node.actualite.field_images
- field.field.node.actualite.field_liens
- field.field.node.actualite.field_type_d_actualite
- image.style.thumbnail
- node.type.actualite
module:
- autocomplete_deluxe
- datetime_range
- field_group
- file
- image
- link
- path
- text
third_party_settings:
field_group:
group_details:
children:
- status
- sticky
- promote
- uid
- created
- path
- simple_sitemap
- simple_sitemap_index_now
label: Details
region: content
parent_name: ''
weight: 7
format_type: details_sidebar
format_settings:
classes: ''
show_empty_fields: false
id: ''
label_as_html: false
open: true
description: ''
required_fields: true
weight: 0
id: node.actualite.default
targetEntityType: node
bundle: actualite
mode: default
content:
body:
type: text_textarea_with_summary
weight: 3
region: content
settings:
rows: 9
summary_rows: 3
placeholder: ''
show_summary: false
third_party_settings: { }
created:
type: datetime_timestamp
weight: 12
region: content
settings: { }
third_party_settings: { }
field_date:
type: daterange_default
weight: 2
region: content
settings: { }
third_party_settings: { }
field_fichiers:
type: file_generic
weight: 4
region: content
settings:
progress_indicator: throbber
third_party_settings: { }
field_images:
type: image_image
weight: 6
region: content
settings:
progress_indicator: throbber
preview_image_style: thumbnail
third_party_settings: { }
field_liens:
type: link_default
weight: 5
region: content
settings:
placeholder_url: ''
placeholder_title: ''
third_party_settings: { }
field_type_d_actualite:
type: autocomplete_deluxe
weight: 1
region: content
settings:
match_operator: CONTAINS
autocomplete_route_name: autocomplete_deluxe.autocomplete
size: 60
selection_handler: default
limit: 10
min_length: 0
delimiter: ''
not_found_message_allow: false
not_found_message: "The term '@term' will be added"
new_terms: false
no_empty_message: 'No terms could be found. Please type in order to add a new term.'
third_party_settings: { }
path:
type: path
weight: 13
region: content
settings: { }
third_party_settings: { }
promote:
type: boolean_checkbox
weight: 10
region: content
settings:
display_label: true
third_party_settings: { }
simple_sitemap:
weight: 14
region: content
settings: { }
third_party_settings: { }
simple_sitemap_index_now:
weight: 15
region: content
settings: { }
third_party_settings: { }
status:
type: boolean_checkbox
weight: 8
region: content
settings:
display_label: true
third_party_settings: { }
sticky:
type: boolean_checkbox
weight: 9
region: content
settings:
display_label: true
third_party_settings: { }
title:
type: string_textfield
weight: 0
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
uid:
type: entity_reference_autocomplete
weight: 11
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
hidden:
langcode: true

View File

@ -0,0 +1,100 @@
uuid: 606dd35e-dd79-4568-9747-43a6be1d6dd0
langcode: fr
status: true
dependencies:
config:
- field.field.node.actualite.body
- field.field.node.actualite.field_date
- field.field.node.actualite.field_fichiers
- field.field.node.actualite.field_images
- field.field.node.actualite.field_liens
- field.field.node.actualite.field_type_d_actualite
- image.style.wide
- node.type.actualite
module:
- datetime_range
- file
- image_field_caption
- link
- manage_display
- text
id: node.actualite.default
targetEntityType: node
bundle: actualite
mode: default
content:
body:
type: text_default
label: hidden
settings: { }
third_party_settings: { }
weight: 3
region: content
field_date:
type: daterange_default
label: visually_hidden
settings:
timezone_override: ''
format_type: html_date
separator: '-'
third_party_settings: { }
weight: 5
region: content
field_fichiers:
type: file_default
label: visually_hidden
settings:
use_description_as_link_text: true
third_party_settings: { }
weight: 6
region: content
field_images:
type: image_caption
label: visually_hidden
settings:
image_style: wide
image_link: ''
image_loading:
attribute: lazy
third_party_settings: { }
weight: 0
region: content
field_liens:
type: link
label: visually_hidden
settings:
trim_length: 80
url_only: false
url_plain: false
rel: ''
target: ''
third_party_settings: { }
weight: 7
region: content
field_type_d_actualite:
type: entity_reference_label
label: visually_hidden
settings:
link: true
third_party_settings: { }
weight: 4
region: content
links:
settings: { }
third_party_settings: { }
weight: 2
region: content
title:
type: title
label: hidden
settings:
link_to_entity: true
tag: h2
third_party_settings: { }
weight: 1
region: content
hidden:
created: true
langcode: true
search_api_excerpt: true
uid: true

View File

@ -0,0 +1,80 @@
uuid: e81d2edd-3a13-4ba5-9b5f-534b480678da
langcode: fr
status: true
dependencies:
config:
- core.entity_view_mode.node.teaser
- field.field.node.actualite.body
- field.field.node.actualite.field_date
- field.field.node.actualite.field_fichiers
- field.field.node.actualite.field_images
- field.field.node.actualite.field_liens
- field.field.node.actualite.field_type_d_actualite
- image.style.wide
- node.type.actualite
module:
- datetime_range
- image_delta_formatter
- manage_display
- text
id: node.actualite.teaser
targetEntityType: node
bundle: actualite
mode: teaser
content:
body:
type: text_summary_or_trimmed
label: hidden
settings:
trim_length: 600
third_party_settings: { }
weight: 4
region: content
field_date:
type: daterange_default
label: visually_hidden
settings:
timezone_override: ''
format_type: html_date
separator: '-'
third_party_settings: { }
weight: 2
region: content
field_images:
type: image_delta_formatter
label: visually_hidden
settings:
deltas: '0'
image_style: wide
image_link: content
image_loading:
attribute: lazy
deltas_reversed: 0
third_party_settings: { }
weight: 0
region: content
field_type_d_actualite:
type: entity_reference_label
label: visually_hidden
settings:
link: false
third_party_settings: { }
weight: 1
region: content
title:
type: title
label: hidden
settings:
link_to_entity: true
tag: h2
third_party_settings: { }
weight: 3
region: content
hidden:
created: true
field_fichiers: true
field_liens: true
langcode: true
links: true
search_api_excerpt: true
uid: true

View File

@ -55,6 +55,7 @@ module:
help: 0 help: 0
honeypot: 0 honeypot: 0
image: 0 image: 0
image_delta_formatter: 0
image_field_caption: 0 image_field_caption: 0
inline_entity_form: 0 inline_entity_form: 0
jquery_ui: 0 jquery_ui: 0

View File

@ -0,0 +1,24 @@
uuid: ec54c93a-da7c-4cda-9c97-b56e59078622
langcode: fr
status: true
dependencies:
config:
- field.storage.node.body
- node.type.actualite
module:
- text
id: node.actualite.body
field_name: body
entity_type: node
bundle: actualite
label: Body
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
display_summary: true
required_summary: false
allowed_formats: { }
field_type: text_with_summary

View File

@ -0,0 +1,21 @@
uuid: c8603e44-395a-4149-832a-5e1572850690
langcode: fr
status: true
dependencies:
config:
- field.storage.node.field_date
- node.type.actualite
module:
- datetime_range
id: node.actualite.field_date
field_name: field_date
entity_type: node
bundle: actualite
label: Date
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: daterange

View File

@ -0,0 +1,27 @@
uuid: d4b8b77e-bad9-4154-a38c-b48b764aceea
langcode: fr
status: true
dependencies:
config:
- field.storage.node.field_fichiers
- node.type.actualite
module:
- file
id: node.actualite.field_fichiers
field_name: field_fichiers
entity_type: node
bundle: actualite
label: Fichiers
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:file'
handler_settings: { }
file_directory: '[date:custom:Y]-[date:custom:m]'
file_extensions: 'pdf doc docx odt zip'
max_filesize: ''
description_field: true
field_type: file

View File

@ -0,0 +1,41 @@
uuid: fbb34084-d75c-4d6d-87fe-2fb5d720d017
langcode: fr
status: true
dependencies:
config:
- field.storage.node.field_images
- node.type.actualite
module:
- image
id: node.actualite.field_images
field_name: field_images
entity_type: node
bundle: actualite
label: Images
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:file'
handler_settings: { }
file_directory: '[date:custom:Y]-[date:custom:m]'
file_extensions: 'png gif jpg jpeg webp'
max_filesize: ''
max_resolution: ''
min_resolution: ''
alt_field: true
alt_field_required: true
title_field: false
title_field_required: false
default_image:
uuid: ''
alt: ''
title: ''
width: null
height: null
caption: ''
caption_field: 1
caption_field_required: 0
field_type: image

View File

@ -0,0 +1,23 @@
uuid: 7dae01b9-cffb-4b55-bd6d-0424509299ae
langcode: fr
status: true
dependencies:
config:
- field.storage.node.field_liens
- node.type.actualite
module:
- link
id: node.actualite.field_liens
field_name: field_liens
entity_type: node
bundle: actualite
label: Liens
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
title: 1
link_type: 17
field_type: link

View File

@ -0,0 +1,29 @@
uuid: af1e2b36-6259-49aa-a509-3e29189fb9b6
langcode: fr
status: true
dependencies:
config:
- field.storage.node.field_type_d_actualite
- node.type.actualite
- taxonomy.vocabulary.type_d_actualite
id: node.actualite.field_type_d_actualite
field_name: field_type_d_actualite
entity_type: node
bundle: actualite
label: "Type d'actualité"
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:taxonomy_term'
handler_settings:
target_bundles:
type_d_actualite: type_d_actualite
sort:
field: name
direction: asc
auto_create: false
auto_create_bundle: ''
field_type: entity_reference

View File

@ -0,0 +1,20 @@
uuid: c1534ed2-1a14-4626-b36c-ec3b43d762c8
langcode: fr
status: true
dependencies:
module:
- datetime_range
- node
id: node.field_date
field_name: field_date
entity_type: node
type: daterange
settings:
datetime_type: date
module: datetime_range
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@ -0,0 +1,23 @@
uuid: 39ebde7c-efe6-46bb-b47c-19386d9c9e0c
langcode: fr
status: true
dependencies:
module:
- file
- node
id: node.field_fichiers
field_name: field_fichiers
entity_type: node
type: file
settings:
target_type: file
display_field: true
display_default: false
uri_scheme: public
module: file
locked: false
cardinality: -1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@ -0,0 +1,30 @@
uuid: e1870973-280a-44ad-b3ea-d7fc46536e0e
langcode: fr
status: true
dependencies:
module:
- file
- image
- node
id: node.field_images
field_name: field_images
entity_type: node
type: image
settings:
target_type: file
display_field: false
display_default: false
uri_scheme: public
default_image:
uuid: ''
alt: ''
title: ''
width: null
height: null
module: image
locked: false
cardinality: -1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@ -0,0 +1,19 @@
uuid: cc3126aa-af8b-446f-8916-d722dcc91678
langcode: fr
status: true
dependencies:
module:
- link
- node
id: node.field_liens
field_name: field_liens
entity_type: node
type: link
settings: { }
module: link
locked: false
cardinality: -1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@ -0,0 +1,20 @@
uuid: 284179e2-dd3e-4651-8fff-03295d69befe
langcode: fr
status: true
dependencies:
module:
- node
- taxonomy
id: node.field_type_d_actualite
field_name: field_type_d_actualite
entity_type: node
type: entity_reference
settings:
target_type: taxonomy_term
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@ -0,0 +1,11 @@
uuid: 79a19504-e2b0-4de6-bd74-ec4b6b0e47d5
langcode: fr
status: true
dependencies:
config:
- node.type.actualite
id: node.actualite
target_entity_type_id: node
target_bundle: actualite
default_langcode: site_default
language_alterable: false

View File

@ -0,0 +1,11 @@
uuid: 4c2fa788-8dd0-408f-8b48-7f7de6331fca
langcode: fr
status: true
dependencies:
config:
- taxonomy.vocabulary.type_d_actualite
id: taxonomy_term.type_d_actualite
target_entity_type_id: taxonomy_term
target_bundle: type_d_actualite
default_langcode: site_default
language_alterable: false

View File

@ -0,0 +1,17 @@
uuid: e1294227-2c5c-4e65-bcf3-36e3a13f7853
langcode: fr
status: true
dependencies:
module:
- menu_ui
third_party_settings:
menu_ui:
available_menus: { }
parent: ''
name: Actualité
type: actualite
description: ''
help: ''
new_revision: true
preview_mode: 0
display_submitted: true

View File

@ -4,6 +4,7 @@ status: true
dependencies: dependencies:
config: config:
- page_manager.page.home - page_manager.page.home
- views.view.actus
- views.view.presentation - views.view.presentation
module: module:
- config_pages - config_pages
@ -65,6 +66,22 @@ variant_settings:
- '' - ''
html_id: '' html_id: ''
css_styles: '' css_styles: ''
d4d27033-dc91-45d7-adc0-8690fd0ab27a:
id: 'views_block:actus-block_1'
label: ''
label_display: visible
provider: views
context_mapping: { }
views_label: ''
items_per_page: none
exposed: { }
region: content
weight: 2
uuid: d4d27033-dc91-45d7-adc0-8690fd0ab27a
css_classes:
- ''
html_id: ''
css_styles: ''
page_title: '' page_title: ''
layout: layout_onecol layout: layout_onecol
layout_settings: layout_settings:

View File

@ -0,0 +1 @@
index_now: true

View File

@ -0,0 +1 @@
index_now: false

View File

@ -0,0 +1,8 @@
uuid: 0cf3d723-a2f9-428b-ac8c-652d286c6905
langcode: fr
status: true
dependencies: { }
name: "Type d'actualité"
vid: type_d_actualite
description: ''
weight: 0

View File

@ -5,6 +5,7 @@ dependencies:
config: config:
- block_content.type.logo_link - block_content.type.logo_link
- filter.format.wysiwyg - filter.format.wysiwyg
- node.type.actualite
- node.type.partenaire - node.type.partenaire
- node.type.static - node.type.static
module: module:
@ -33,9 +34,13 @@ permissions:
- 'administer nodes' - 'administer nodes'
- 'administer users' - 'administer users'
- 'change own username' - 'change own username'
- 'create actualite content'
- 'create content translations' - 'create content translations'
- 'create partenaire content' - 'create partenaire content'
- 'create static content' - 'create static content'
- 'delete any actualite content'
- 'delete partenaire revisions'
- 'edit any actualite content'
- 'edit any logo_link block content' - 'edit any logo_link block content'
- 'edit any partenaire content' - 'edit any partenaire content'
- 'edit any static content' - 'edit any static content'
@ -56,12 +61,14 @@ permissions:
- 'execute user_unblock_user_action user' - 'execute user_unblock_user_action user'
- 'execute vbo_cancel_user_action user' - 'execute vbo_cancel_user_action user'
- 'execute views_bulk_edit all' - 'execute views_bulk_edit all'
- 'revert actualite revisions'
- 'revert partenaire revisions' - 'revert partenaire revisions'
- 'revert static revisions' - 'revert static revisions'
- 'translate editable entities' - 'translate editable entities'
- 'translate interface' - 'translate interface'
- 'update content translations' - 'update content translations'
- 'use text format wysiwyg' - 'use text format wysiwyg'
- 'view actualite revisions'
- 'view any logo_link block content history' - 'view any logo_link block content history'
- 'view own unpublished content' - 'view own unpublished content'
- 'view partenaire revisions' - 'view partenaire revisions'

View File

@ -4,6 +4,7 @@ status: true
dependencies: dependencies:
config: config:
- filter.format.wysiwyg - filter.format.wysiwyg
- node.type.actualite
- node.type.partenaire - node.type.partenaire
- node.type.static - node.type.static
module: module:
@ -25,9 +26,12 @@ permissions:
- 'access site in maintenance mode' - 'access site in maintenance mode'
- 'access toolbar' - 'access toolbar'
- 'administer nodes' - 'administer nodes'
- 'create actualite content'
- 'create content translations' - 'create content translations'
- 'create partenaire content' - 'create partenaire content'
- 'create static content' - 'create static content'
- 'delete partenaire revisions'
- 'edit any actualite content'
- 'edit any partenaire content' - 'edit any partenaire content'
- 'edit any static content' - 'edit any static content'
- 'edit deroulement config page entity' - 'edit deroulement config page entity'
@ -38,12 +42,14 @@ permissions:
- 'execute node_make_unsticky_action node' - 'execute node_make_unsticky_action node'
- 'execute node_promote_action node' - 'execute node_promote_action node'
- 'execute node_unpromote_action node' - 'execute node_unpromote_action node'
- 'revert actualite revisions'
- 'revert partenaire revisions' - 'revert partenaire revisions'
- 'revert static revisions' - 'revert static revisions'
- 'translate editable entities' - 'translate editable entities'
- 'translate interface' - 'translate interface'
- 'update content translations' - 'update content translations'
- 'use text format wysiwyg' - 'use text format wysiwyg'
- 'view actualite revisions'
- 'view own unpublished content' - 'view own unpublished content'
- 'view partenaire revisions' - 'view partenaire revisions'
- 'view static revisions' - 'view static revisions'

View File

@ -0,0 +1,188 @@
uuid: 95e45d84-ecb4-4423-a234-2f86bc5f617e
langcode: fr
status: true
dependencies:
config:
- core.entity_view_mode.node.teaser
- node.type.actualite
module:
- node
- user
id: actus
label: Actus
module: views
description: ''
tag: ''
base_table: node_field_data
base_field: nid
display:
default:
id: default
display_title: Default
display_plugin: default
position: 0
display_options:
title: Actualités
fields:
title:
id: title
table: node_field_data
field: title
relationship: none
group_type: group
admin_label: ''
entity_type: node
entity_field: title
plugin_id: field
label: ''
exclude: false
alter:
alter_text: false
make_link: false
absolute: false
word_boundary: false
ellipsis: false
strip_tags: false
trim: false
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: string
settings:
link_to_entity: 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
pager:
type: some
options:
offset: 0
items_per_page: 5
exposed_form:
type: basic
options:
submit_button: Appliquer
reset_button: false
reset_button_label: Réinitialiser
exposed_sorts_label: 'Trier par'
expose_sort_order: true
sort_asc_label: Asc
sort_desc_label: Desc
access:
type: perm
options:
perm: 'access content'
cache:
type: tag
options: { }
empty: { }
sorts:
created:
id: created
table: node_field_data
field: created
relationship: none
group_type: group
admin_label: ''
entity_type: node
entity_field: created
plugin_id: date
order: DESC
expose:
label: ''
field_identifier: ''
exposed: false
granularity: second
arguments: { }
filters:
status:
id: status
table: node_field_data
field: status
entity_type: node
entity_field: status
plugin_id: boolean
value: '1'
group: 1
expose:
operator: ''
type:
id: type
table: node_field_data
field: type
entity_type: node
entity_field: type
plugin_id: bundle
value:
actualite: actualite
style:
type: default
row:
type: 'entity:node'
options:
view_mode: teaser
query:
type: views_query
options:
query_comment: ''
disable_sql_rewrite: false
distinct: false
replica: false
query_tags: { }
relationships: { }
header: { }
footer: { }
display_extenders: { }
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- 'user.node_grants:view'
- user.permissions
tags: { }
block_1:
id: block_1
display_title: Block
display_plugin: block
position: 1
display_options:
display_extenders:
matomo:
enabled: false
keyword_gets: ''
keyword_behavior: first
keyword_concat_separator: ' '
category_behavior: none
category_gets: ''
category_concat_separator: ' '
category_fallback: ''
category_facets: { }
category_facets_concat_separator: ', '
simple_sitemap_display_extender: { }
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- 'user.node_grants:view'
- user.permissions
tags: { }