This commit is contained in:
Bachir Soussi Chiadmi 2024-03-05 15:56:10 +01:00
parent 59a0e39d0f
commit 510aae23d7
28 changed files with 762 additions and 4 deletions

View File

@ -19,6 +19,7 @@
"drupal/core-composer-scaffold": "^10.1",
"drupal/core-project-message": "^10.1",
"drupal/core-recommended": "^10.1",
"drupal/faq": "^1.2",
"drupal/linked_field": "^1.5",
"drupal/page_manager": "^4.0@RC",
"drupal/panels": "^4.7",

50
composer.lock generated
View File

@ -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": "a233676fef02c95c437aed3fe67d5391",
"content-hash": "f2ec54d992de092070e036a590fb184c",
"packages": [
{
"name": "asm89/stack-cors",
@ -3955,6 +3955,54 @@
"issues": "https://www.drupal.org/project/issues/extlink"
}
},
{
"name": "drupal/faq",
"version": "1.2.0",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/faq.git",
"reference": "8.x-1.2"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/faq-8.x-1.2.zip",
"reference": "8.x-1.2",
"shasum": "eb1c7316ca2dab6521639d5963ff9df91f6adad5"
},
"require": {
"drupal/core": "^8.8 || ^9 || ^10"
},
"type": "drupal-module",
"extra": {
"drupal": {
"version": "8.x-1.2",
"datestamp": "1689107047",
"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": "Mohammed J. Razem",
"homepage": "https://www.drupal.org/user/255384"
},
{
"name": "vijaycs85",
"homepage": "https://www.drupal.org/user/93488"
}
],
"description": "Frequently Asked Questions.",
"homepage": "http://drupal.org/project/faq",
"support": {
"source": "https://git.drupalcode.org/project/faq"
}
},
{
"name": "drupal/field_group",
"version": "dev-3.x",

View File

@ -3,7 +3,6 @@ langcode: fr
status: true
dependencies:
module:
- block_class
- social_media_links
theme:
- erabletheme

View File

@ -3,7 +3,6 @@ langcode: fr
status: true
dependencies:
module:
- block_class
- social_media_links
theme:
- erabletheme

View File

@ -3,7 +3,6 @@ langcode: fr
status: true
dependencies:
module:
- block_class
- node
theme:
- erabletheme

View File

@ -0,0 +1,30 @@
uuid: 8eb6829e-ca59-4575-9995-09c358c6044e
langcode: fr
status: true
dependencies:
content:
- 'block_content:link:82c97cc5-9a38-42e6-852f-e160d945a338'
module:
- block_content
- system
theme:
- erabletheme
id: erabletheme_unequestion
theme: erabletheme
region: sidebar_second
weight: 0
provider: null
plugin: 'block_content:82c97cc5-9a38-42e6-852f-e160d945a338'
settings:
id: 'block_content:82c97cc5-9a38-42e6-852f-e160d945a338'
label: 'Une question ?'
label_display: visible
provider: block_content
status: true
info: ''
view_mode: full
visibility:
request_path:
id: request_path
negate: false
pages: /node/2

View File

@ -0,0 +1,8 @@
uuid: aa440e91-840d-4132-9053-b4d52c2fa5db
langcode: fr
status: true
dependencies: { }
id: link
label: Link
revision: 0
description: ''

View File

@ -0,0 +1,38 @@
uuid: 2b032f99-8e01-4053-b4d3-ea250a2628dc
langcode: fr
status: true
dependencies:
config:
- block_content.type.link
- field.field.block_content.link.field_lien_libele
module:
- link
id: block_content.link.default
targetEntityType: block_content
bundle: link
mode: default
content:
field_lien_libele:
type: link_default
weight: 26
region: content
settings:
placeholder_url: ''
placeholder_title: ''
third_party_settings: { }
info:
type: string_textfield
weight: -5
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
langcode:
type: language_select
weight: 2
region: content
settings:
include_locked: true
third_party_settings: { }
hidden: { }

View File

@ -0,0 +1,95 @@
uuid: f9592b3c-a546-4994-98de-98059045d0a7
langcode: fr
status: true
dependencies:
config:
- field.field.node.faq.body
- field.field.node.faq.field_detailed_question
- node.type.faq
module:
- path
- text
_core:
default_config_hash: TNqy7c_8xILlBgAIoqfCVT0POwfRYmZsqvs97HVfnFg
id: node.faq.default
targetEntityType: node
bundle: faq
mode: default
content:
body:
type: text_textarea_with_summary
weight: 2
region: content
settings:
rows: 9
summary_rows: 3
placeholder: ''
show_summary: false
third_party_settings: { }
created:
type: datetime_timestamp
weight: 6
region: content
settings: { }
third_party_settings: { }
field_detailed_question:
type: text_textarea
weight: 1
region: content
settings:
rows: 5
placeholder: ''
third_party_settings: { }
langcode:
type: language_select
weight: 3
region: content
settings:
include_locked: true
third_party_settings: { }
path:
type: path
weight: 4
region: content
settings: { }
third_party_settings: { }
promote:
type: boolean_checkbox
weight: 7
region: content
settings:
display_label: true
third_party_settings: { }
status:
type: boolean_checkbox
weight: 9
region: content
settings:
display_label: true
third_party_settings: { }
sticky:
type: boolean_checkbox
weight: 8
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: 5
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
hidden: { }

View File

@ -0,0 +1,29 @@
uuid: 42a79631-c255-46e3-8105-70c12120d245
langcode: fr
status: true
dependencies:
config:
- block_content.type.link
- field.field.block_content.link.field_lien_libele
module:
- link
id: block_content.link.default
targetEntityType: block_content
bundle: link
mode: default
content:
field_lien_libele:
type: link
label: visually_hidden
settings:
trim_length: 80
url_only: false
url_plain: false
rel: '0'
target: '0'
third_party_settings: { }
weight: 0
region: content
hidden:
langcode: true
search_api_excerpt: true

View File

@ -0,0 +1,42 @@
uuid: 93224ae8-d811-48dc-851f-a03cd511e7bf
langcode: fr
status: true
dependencies:
config:
- field.field.node.faq.body
- field.field.node.faq.field_detailed_question
- node.type.faq
module:
- text
- user
_core:
default_config_hash: gjgsbekajWWLLEAsiUeU8w6axCf3UMTFPjRhlmMRf-Q
id: node.faq.default
targetEntityType: node
bundle: faq
mode: default
content:
body:
type: text_default
label: hidden
settings: { }
third_party_settings: { }
weight: 1
region: content
field_detailed_question:
type: text_default
label: hidden
settings: { }
third_party_settings: { }
weight: 0
region: content
path:
type: path
settings: { }
third_party_settings: { }
weight: 2
region: content
hidden:
langcode: true
links: true
search_api_excerpt: true

View File

@ -0,0 +1,43 @@
uuid: e4f2b6d8-d025-46fe-8ac3-0ecf81f9cd76
langcode: fr
status: true
dependencies:
config:
- core.entity_view_mode.node.full
- field.field.node.faq.body
- field.field.node.faq.field_detailed_question
- node.type.faq
module:
- text
- user
_core:
default_config_hash: gjgsbekajWWLLEAsiUeU8w6axCf3UMTFPjRhlmMRf-Q
id: node.faq.full
targetEntityType: node
bundle: faq
mode: full
content:
body:
type: text_default
label: hidden
settings: { }
third_party_settings: { }
weight: 1
region: content
field_detailed_question:
type: text_default
label: hidden
settings: { }
third_party_settings: { }
weight: 0
region: content
path:
type: path
settings: { }
third_party_settings: { }
weight: 2
region: content
hidden:
langcode: true
links: true
search_api_excerpt: true

View File

@ -0,0 +1,30 @@
uuid: 9e5523f2-357d-45b8-9c9d-aeeb5263fb0a
langcode: fr
status: true
dependencies:
config:
- core.entity_view_mode.node.teaser
- field.field.node.faq.body
- field.field.node.faq.field_detailed_question
- node.type.faq
module:
- user
_core:
default_config_hash: gjgsbekajWWLLEAsiUeU8w6axCf3UMTFPjRhlmMRf-Q
id: node.faq.teaser
targetEntityType: node
bundle: faq
mode: teaser
content:
path:
type: path
settings: { }
third_party_settings: { }
weight: 2
region: content
hidden:
body: true
field_detailed_question: true
langcode: true
links: true
search_api_excerpt: true

View File

@ -44,6 +44,7 @@ module:
entity_browser: 0
entity_browser_enhanced: 0
entity_reference_revisions: 0
faq: 0
field: 0
field_group: 0
field_ui: 0

View File

@ -0,0 +1,30 @@
_core:
default_config_hash: SQxxJIZXuKPvJBBY6_EQCM940iKYgW6QVES9iN4s5h4
title: 'Foire aux Questions'
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.'
custom_breadcrumbs: 0
display: hide_answer
question_listing: ul
qa_mark: 0
question_label: 'Q:'
answer_label: 'A:'
question_length: both
question_long_form: 1
hide_qa_accordion: 1
show_expand_all: 0
use_teaser: 0
back_to_top: 'Back to Top'
disable_node_links: 1
default_sorting: DESC
use_categories: 0
category_display: none
category_listing: ul
category_hide_qa_accordion: 0
count: 0
answer_category_name: 0
group_questions_top: 0
hide_child_terms: 0
show_term_page_children: 0
omit_vocabulary:
type_dactus: 0
langcode: fr

View File

@ -0,0 +1,23 @@
uuid: 33211c8a-0c97-4612-92a5-4b0c78c3f25a
langcode: fr
status: true
dependencies:
config:
- block_content.type.link
- field.storage.block_content.field_lien_libele
module:
- link
id: block_content.link.field_lien_libele
field_name: field_lien_libele
entity_type: block_content
bundle: link
label: 'Lien libélé'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
title: 2
link_type: 17
field_type: link

View File

@ -0,0 +1,28 @@
uuid: 1920d318-1e8f-4525-ace3-eaec92de9c7f
langcode: fr
status: true
dependencies:
config:
- field.storage.node.body
- filter.format.wysiwyg
- node.type.faq
module:
- text
_core:
default_config_hash: pH2j1E7TXb0FGuuSAogMph-JRqnYJ5JL0Orx-G7tnvM
id: node.faq.body
field_name: body
entity_type: node
bundle: faq
label: Réponse
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
display_summary: true
required_summary: false
allowed_formats:
- wysiwyg
field_type: text_with_summary

View File

@ -0,0 +1,24 @@
uuid: fcb9da6e-3e8e-4858-843b-9d41795e3652
langcode: fr
status: true
dependencies:
config:
- field.storage.node.field_detailed_question
- node.type.faq
module:
- text
_core:
default_config_hash: Y9whulSoajWQYYz5b8XhTTTthsu3P_fUcK6X61tWbgU
id: node.faq.field_detailed_question
field_name: field_detailed_question
entity_type: node
bundle: faq
label: 'Detailed Question'
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
allowed_formats: { }
field_type: text_long

View File

@ -0,0 +1,19 @@
uuid: 1dbc7a05-6dbd-4266-afb4-681d0550835d
langcode: fr
status: true
dependencies:
module:
- block_content
- link
id: block_content.field_lien_libele
field_name: field_lien_libele
entity_type: block_content
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,21 @@
uuid: d4cb69d0-54ca-4438-b4cf-90fc96ba7d4a
langcode: fr
status: true
dependencies:
module:
- node
- text
_core:
default_config_hash: uqCUWlb3YRJ4kaQvmo376OQLNpgtcOUTmucoolErKMg
id: node.field_detailed_question
field_name: field_detailed_question
entity_type: node
type: text_long
settings: { }
module: text
locked: true
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@ -0,0 +1,11 @@
uuid: e51a3c63-5219-46cf-b604-bd614b78d42d
langcode: fr
status: true
dependencies:
config:
- block_content.type.link
id: block_content.link
target_entity_type_id: block_content
target_bundle: link
default_langcode: site_default
language_alterable: false

View File

@ -0,0 +1,11 @@
uuid: 25fd3f3b-7258-4fb3-888f-ded6c5bcb46e
langcode: fr
status: true
dependencies:
config:
- node.type.faq
id: node.faq
target_entity_type_id: node
target_bundle: faq
default_langcode: site_default
language_alterable: false

View File

@ -0,0 +1,20 @@
uuid: 47f96368-898c-440b-9df0-97da79149f75
langcode: fr
status: true
dependencies:
module:
- menu_ui
third_party_settings:
menu_ui:
available_menus:
- main
parent: 'main:'
_core:
default_config_hash: L5fQmHilstpn-pY2na8uhk7qeWxa3Ac3x3LsBrZORQg
name: FAQ
type: faq
description: 'Une question fréquemment posée et sa réponse.'
help: ''
new_revision: true
preview_mode: 1
display_submitted: false

View File

@ -6,6 +6,7 @@ dependencies:
- filter.format.wysiwyg
- node.type.actualite
- node.type.equipe
- node.type.faq
- node.type.partenaire
- node.type.static
- taxonomy.vocabulary.type_dactus
@ -13,6 +14,7 @@ dependencies:
- actions_permissions
- content_lock
- content_translation
- faq
- file
- filter
- node
@ -31,6 +33,7 @@ permissions:
- 'access files overview'
- 'access site in maintenance mode'
- 'access toolbar'
- 'administer faq order'
- 'administer nodes'
- 'administer site configuration'
- 'administer users'
@ -39,10 +42,12 @@ permissions:
- 'create actualite content'
- 'create content translations'
- 'create equipe content'
- 'create faq content'
- 'create partenaire content'
- 'create terms in type_dactus'
- 'edit any actualite content'
- 'edit any equipe content'
- 'edit any faq content'
- 'edit any partenaire content'
- 'edit any static content'
- 'edit own actualite content'
@ -62,10 +67,13 @@ permissions:
- 'execute views_bulk_edit all'
- 'revert actualite revisions'
- 'revert equipe revisions'
- 'revert faq revisions'
- 'revert partenaire revisions'
- 'revert static revisions'
- 'update content translations'
- 'use text format wysiwyg'
- 'view actualite revisions'
- 'view faq page'
- 'view faq revisions'
- 'view static revisions'
- 'view the administration theme'

View File

@ -4,6 +4,7 @@ status: true
dependencies:
module:
- devel
- faq
- system
_core:
default_config_hash: jyuRv_5UazPqBsQ9L4kDkcVvxtGr0WytAUoWf1LhqOk
@ -14,3 +15,4 @@ is_admin: false
permissions:
- 'access content'
- 'access devel information'
- 'view faq page'

View File

@ -4,6 +4,7 @@ status: true
dependencies:
module:
- devel
- faq
- system
_core:
default_config_hash: OVp5431n1LmiRh_QaOpDS1hEEFvtjRqisASIU0tYIwo
@ -14,3 +15,4 @@ is_admin: false
permissions:
- 'access content'
- 'access devel information'
- 'view faq page'

View File

@ -6,12 +6,14 @@ dependencies:
- filter.format.wysiwyg
- node.type.actualite
- node.type.equipe
- node.type.faq
- node.type.partenaire
- node.type.static
- taxonomy.vocabulary.type_dactus
module:
- actions_permissions
- content_lock
- faq
- filter
- node
- system
@ -26,14 +28,17 @@ permissions:
- 'access content overview'
- 'access site in maintenance mode'
- 'access toolbar'
- 'administer faq order'
- 'administer nodes'
- 'break content lock'
- 'create actualite content'
- 'create equipe content'
- 'create faq content'
- 'create partenaire content'
- 'create terms in type_dactus'
- 'edit any actualite content'
- 'edit any equipe content'
- 'edit any faq content'
- 'edit any partenaire content'
- 'edit any static content'
- 'edit own actualite content'
@ -47,9 +52,12 @@ permissions:
- 'execute user_unblock_user_action user'
- 'revert actualite revisions'
- 'revert equipe revisions'
- 'revert faq revisions'
- 'revert partenaire revisions'
- 'revert static revisions'
- 'use text format wysiwyg'
- 'view actualite revisions'
- 'view faq page'
- 'view faq revisions'
- 'view static revisions'
- 'view the administration theme'

View File

@ -0,0 +1,189 @@
uuid: ff723a50-d198-486b-bce1-9a9add9f6723
langcode: fr
status: true
dependencies:
config:
- core.entity_view_mode.node.full
- node.type.faq
module:
- node
- user
id: faq
label: FAQ
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: 'Foire aux questions'
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: none
options:
offset: 0
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:
faq: faq
style:
type: default
row:
type: 'entity:node'
options:
view_mode: full
query:
type: views_query
options:
query_comment: ''
disable_sql_rewrite: false
distinct: false
replica: false
query_tags: { }
relationships: { }
header:
area:
id: area
table: views
field: area
relationship: none
group_type: group
admin_label: ''
plugin_id: text
empty: true
content:
value: 'Ac tortor vitae purus faucibus ornare. Sit amet consectetur adipiscing elit ut aliquam. Leo vel orci porta non. Curabitur gravida arcu ac tortor dignissim. Est velit egestas dui id ornare arcu odio ut sem. Maecenas volutpat blandit aliquam etiam erat velit scelerisque in dictum. Eget magna fermentum iaculis eu non. Egestas sed sed risus pretium quam vulputate. Vel facilisis volutpat est velit egestas dui. Pharetra vel turpis nunc eget. Dapibus ultrices in iaculis nunc sed. Eu mi bibendum neque egestas congue quisque egestas diam. Lacus vel facilisis volutpat est velit.'
format: wysiwyg
tokenize: false
footer: { }
display_extenders: { }
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- 'user.node_grants:view'
- user.permissions
tags: { }
page_1:
id: page_1
display_title: Page
display_plugin: page
position: 1
display_options:
display_extenders: { }
path: faq
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- 'user.node_grants:view'
- user.permissions
tags: { }