'
+ allowed_html: ' -
-
-
| | |
'
filter_html_help: true
filter_html_nofollow: false
filter_align:
diff --git a/config/sync/language.content_settings.paragraph.chapitre.yml b/config/sync/language.content_settings.paragraph.chapitre.yml
deleted file mode 100644
index 585616d..0000000
--- a/config/sync/language.content_settings.paragraph.chapitre.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-uuid: cfe4cbb5-7a97-49fe-b25f-154d86bf29bd
-langcode: en
-status: true
-dependencies:
- config:
- - paragraphs.paragraphs_type.chapitre
- module:
- - content_translation
-third_party_settings:
- content_translation:
- enabled: false
- bundle_settings:
- untranslatable_fields_hide: '0'
-id: paragraph.chapitre
-target_entity_type_id: paragraph
-target_bundle: chapitre
-default_langcode: site_default
-language_alterable: false
diff --git a/config/sync/language/en/field.field.node.book.body.yml b/config/sync/language/en/field.field.node.book.body.yml
deleted file mode 100644
index 7e34baf..0000000
--- a/config/sync/language/en/field.field.node.book.body.yml
+++ /dev/null
@@ -1 +0,0 @@
-label: Body
diff --git a/config/sync/paragraphs.paragraphs_type.chapitre.yml b/config/sync/paragraphs.paragraphs_type.images_two_col.yml
similarity index 52%
rename from config/sync/paragraphs.paragraphs_type.chapitre.yml
rename to config/sync/paragraphs.paragraphs_type.images_two_col.yml
index 1dce03a..e5fd738 100644
--- a/config/sync/paragraphs.paragraphs_type.chapitre.yml
+++ b/config/sync/paragraphs.paragraphs_type.images_two_col.yml
@@ -1,9 +1,9 @@
-uuid: 9c863e18-a58f-4538-8017-8bf052d5fecd
-langcode: en
+uuid: 5e42b00c-3d2c-431c-9a0f-700720d9c03b
+langcode: fr
status: true
dependencies: { }
-id: chapitre
-label: Chapitre
+id: images_two_col
+label: Images-two-col
icon_uuid: null
icon_default: null
description: ''
diff --git a/config/sync/paragraphs.paragraphs_type.tablefields_two_col.yml b/config/sync/paragraphs.paragraphs_type.tablefields_two_col.yml
new file mode 100644
index 0000000..8aa3777
--- /dev/null
+++ b/config/sync/paragraphs.paragraphs_type.tablefields_two_col.yml
@@ -0,0 +1,10 @@
+uuid: c57b888f-4a43-45a5-adc5-f6e991b9d32d
+langcode: fr
+status: true
+dependencies: { }
+id: tablefields_two_col
+label: tablefields-two-col
+icon_uuid: null
+icon_default: null
+description: 'pour les petits tableaux à voir côte à côte'
+behavior_plugins: { }
diff --git a/config/sync/user.role.anonymous.yml b/config/sync/user.role.anonymous.yml
index 1b3b2bd..55bf4fb 100644
--- a/config/sync/user.role.anonymous.yml
+++ b/config/sync/user.role.anonymous.yml
@@ -3,6 +3,7 @@ langcode: fr
status: true
dependencies:
config:
+ - filter.format.tablecell
- filter.format.wysiwyg
module:
- devel
@@ -23,6 +24,7 @@ permissions:
- 'create defalut workflow_transition'
- 'create default workflow_transition'
- 'create generique workflow_transition'
+ - 'use text format tablecell'
- 'use text format wysiwyg'
- 'view published fil entities'
- 'view search api pages'
diff --git a/config/sync/user.role.authenticated.yml b/config/sync/user.role.authenticated.yml
index 285c7e1..eb48255 100644
--- a/config/sync/user.role.authenticated.yml
+++ b/config/sync/user.role.authenticated.yml
@@ -3,6 +3,7 @@ langcode: fr
status: true
dependencies:
config:
+ - filter.format.tablecell
- filter.format.wysiwyg
module:
- devel
@@ -32,6 +33,7 @@ permissions:
- 'edit own fil entities'
- 'opt-in or out of matomo tracking'
- 'use chutier'
+ - 'use text format tablecell'
- 'use text format wysiwyg'
- 'view own unpublished chutier entities'
- 'view own unpublished composition entities'
diff --git a/config/sync/user.role.editor.yml b/config/sync/user.role.editor.yml
index b515bb3..44cab16 100644
--- a/config/sync/user.role.editor.yml
+++ b/config/sync/user.role.editor.yml
@@ -4,6 +4,7 @@ status: true
dependencies:
config:
- filter.format.tablecell
+ - filter.format.wysiwyg
- node.type.book
- node.type.static
module:
@@ -52,6 +53,7 @@ permissions:
- 'translate user'
- 'update content translations'
- 'use text format tablecell'
+ - 'use text format wysiwyg'
- 'view book revisions'
- 'view own unpublished content'
- 'view static revisions'
diff --git a/config/sync/user.role.translator.yml b/config/sync/user.role.translator.yml
index a455629..8c38807 100644
--- a/config/sync/user.role.translator.yml
+++ b/config/sync/user.role.translator.yml
@@ -4,6 +4,7 @@ status: true
dependencies:
config:
- filter.format.tablecell
+ - filter.format.wysiwyg
- node.type.book
- node.type.static
module:
@@ -37,5 +38,6 @@ permissions:
- 'translate user'
- 'update content translations'
- 'use text format tablecell'
+ - 'use text format wysiwyg'
- 'view own unpublished content'
- 'view the administration theme'
diff --git a/config/sync/views.view.viewed_by_book.yml b/config/sync/views.view.viewed_by_book.yml
new file mode 100644
index 0000000..c843867
--- /dev/null
+++ b/config/sync/views.view.viewed_by_book.yml
@@ -0,0 +1,643 @@
+uuid: 0ca1f33e-d510-434d-bcba-120577923a37
+langcode: fr
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_parent_book
+ module:
+ - book
+ - node
+ - user
+id: viewed_by_book
+label: 'viewed by book'
+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: 'viewed by book'
+ fields:
+ title:
+ id: title
+ table: node_field_data
+ field: title
+ relationship: none
+ group_type: group
+ admin_label: ''
+ plugin_id: field
+ label: ''
+ 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: 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
+ depth:
+ id: depth
+ table: book
+ field: depth
+ relationship: none
+ group_type: group
+ admin_label: ''
+ plugin_id: numeric
+ label: Depth
+ 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
+ set_precision: false
+ precision: 0
+ decimal: .
+ separator: ','
+ format_plural: false
+ format_plural_string: !!binary MQNAY291bnQ=
+ prefix: ''
+ suffix: ''
+ langcode:
+ id: langcode
+ table: node_field_data
+ field: langcode
+ relationship: pid
+ group_type: group
+ admin_label: ''
+ entity_type: node
+ entity_field: langcode
+ plugin_id: field
+ label: 'Translation language'
+ 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: language
+ settings:
+ link_to_entity: false
+ native_language: false
+ 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
+ content_translation_outdated:
+ id: content_translation_outdated
+ table: node_field_data
+ field: content_translation_outdated
+ relationship: none
+ group_type: group
+ admin_label: ''
+ entity_type: node
+ entity_field: content_translation_outdated
+ plugin_id: field
+ label: 'Translation outdated'
+ 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: boolean
+ settings:
+ format: default
+ format_custom_false: ''
+ format_custom_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
+ field_parent_book:
+ id: field_parent_book
+ table: node__field_parent_book
+ field: field_parent_book
+ relationship: none
+ group_type: group
+ admin_label: ''
+ plugin_id: field
+ label: 'Parent Book'
+ 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: target_id
+ type: entity_reference_label
+ settings:
+ link: true
+ group_column: target_id
+ 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: Apply
+ reset_button: false
+ reset_button_label: Reset
+ exposed_sorts_label: 'Sort by'
+ 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
+ langcode:
+ id: langcode
+ table: node_field_data
+ field: langcode
+ relationship: pid
+ group_type: group
+ admin_label: ''
+ entity_type: node
+ entity_field: langcode
+ plugin_id: standard
+ order: ASC
+ expose:
+ label: ''
+ field_identifier: ''
+ exposed: false
+ arguments:
+ langcode:
+ id: langcode
+ table: node_field_data
+ field: langcode
+ relationship: none
+ group_type: group
+ admin_label: ''
+ entity_type: node
+ entity_field: langcode
+ plugin_id: language
+ default_action: ignore
+ exception:
+ value: all
+ title_enable: false
+ title: All
+ title_enable: false
+ title: ''
+ default_argument_type: fixed
+ default_argument_options:
+ argument: ''
+ default_argument_skip_url: false
+ summary_options:
+ base_path: ''
+ count: true
+ override: false
+ items_per_page: 25
+ summary:
+ sort_order: asc
+ number_of_records: 0
+ format: default_summary
+ specify_validation: false
+ validate:
+ type: none
+ fail: 'not found'
+ validate_options: { }
+ 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: ''
+ operator_limit_selection: false
+ operator_list: { }
+ langcode:
+ id: langcode
+ table: node_field_data
+ field: langcode
+ relationship: pid
+ group_type: group
+ admin_label: ''
+ entity_type: node
+ entity_field: langcode
+ plugin_id: language
+ operator: in
+ value:
+ all: all
+ '***LANGUAGE_site_default***': '***LANGUAGE_site_default***'
+ '***LANGUAGE_language_interface***': '***LANGUAGE_language_interface***'
+ en: en
+ fr: fr
+ ja: ja
+ und: und
+ zxx: zxx
+ group: 1
+ exposed: false
+ expose:
+ operator_id: ''
+ label: ''
+ description: ''
+ use_operator: false
+ operator: ''
+ operator_limit_selection: false
+ operator_list: { }
+ identifier: ''
+ required: false
+ remember: false
+ multiple: false
+ remember_roles:
+ authenticated: authenticated
+ reduce: false
+ is_grouped: false
+ group_info:
+ label: ''
+ description: ''
+ identifier: ''
+ optional: true
+ widget: select
+ multiple: false
+ remember: false
+ default_group: All
+ default_group_multiple: { }
+ group_items: { }
+ style:
+ type: table
+ options:
+ grouping:
+ -
+ field: field_parent_book
+ rendered: true
+ rendered_strip: false
+ row_class: ''
+ default_row_class: true
+ columns:
+ title: title
+ depth: depth
+ has_children: has_children
+ field_parent_book: field_parent_book
+ langcode: langcode
+ content_translation_outdated: content_translation_outdated
+ default: '-1'
+ info:
+ title:
+ sortable: false
+ default_sort_order: asc
+ align: ''
+ separator: ''
+ empty_column: false
+ responsive: ''
+ depth:
+ sortable: false
+ default_sort_order: asc
+ align: ''
+ separator: ''
+ empty_column: false
+ responsive: ''
+ has_children:
+ sortable: true
+ default_sort_order: asc
+ align: ''
+ separator: ''
+ empty_column: false
+ responsive: ''
+ field_parent_book:
+ sortable: true
+ default_sort_order: asc
+ align: ''
+ separator: ''
+ empty_column: false
+ responsive: ''
+ langcode:
+ sortable: true
+ default_sort_order: asc
+ align: ''
+ separator: ''
+ empty_column: false
+ responsive: ''
+ content_translation_outdated:
+ sortable: true
+ default_sort_order: asc
+ align: ''
+ separator: ''
+ empty_column: false
+ responsive: ''
+ override: true
+ sticky: false
+ summary: ''
+ empty_table: false
+ caption: ''
+ description: ''
+ row:
+ type: fields
+ query:
+ type: views_query
+ options:
+ query_comment: ''
+ disable_sql_rewrite: false
+ distinct: false
+ replica: false
+ query_tags: { }
+ relationships:
+ pid:
+ id: pid
+ table: book
+ field: pid
+ relationship: none
+ group_type: group
+ admin_label: 'Book Parent'
+ plugin_id: standard
+ required: true
+ header: { }
+ footer: { }
+ display_extenders: { }
+ cache_metadata:
+ max-age: -1
+ contexts:
+ - 'languages:language_content'
+ - 'languages:language_interface'
+ - url
+ - url.query_args
+ - 'user.node_grants:view'
+ - user.permissions
+ tags:
+ - 'config:field.storage.node.field_parent_book'
+ block_1:
+ id: block_1
+ display_title: Block
+ display_plugin: block
+ position: 1
+ display_options:
+ display_extenders: { }
+ cache_metadata:
+ max-age: -1
+ contexts:
+ - 'languages:language_content'
+ - 'languages:language_interface'
+ - url
+ - url.query_args
+ - 'user.node_grants:view'
+ - user.permissions
+ tags:
+ - 'config:field.storage.node.field_parent_book'
+ page_1:
+ id: page_1
+ display_title: Page
+ display_plugin: page
+ position: 2
+ display_options:
+ display_description: ''
+ display_extenders: { }
+ path: admin/content/view_by_book
+ menu:
+ type: tab
+ title: 'by book'
+ description: ''
+ weight: 0
+ expanded: false
+ menu_name: admin
+ parent: ''
+ context: '0'
+ cache_metadata:
+ max-age: -1
+ contexts:
+ - 'languages:language_content'
+ - 'languages:language_interface'
+ - url
+ - url.query_args
+ - 'user.node_grants:view'
+ - user.permissions
+ tags:
+ - 'config:field.storage.node.field_parent_book'
diff --git a/web/themes/custom/rorschach/rorschach.theme b/web/themes/custom/rorschach/rorschach.theme
index 2854765..8ca235c 100644
--- a/web/themes/custom/rorschach/rorschach.theme
+++ b/web/themes/custom/rorschach/rorschach.theme
@@ -37,13 +37,25 @@ function rorschach_preprocess_field(&$variables) {
$field_name = &$variables['field_name'];
if($node) {
- if ($field_name == 'field_type_de_protagoniste'){
- $type_protagoniste = $node->get('field_type_de_protagoniste')->getString();
- $variables['attributes']['class'][] = 'type-de-protagoniste-' . $type_protagoniste;
- }
+ // if ($field_name == 'field_type_de_protagoniste'){
+ // $type_protagoniste = $node->get('field_type_de_protagoniste')->getString();
+ // $variables['attributes']['class'][] = 'type-de-protagoniste-' . $type_protagoniste;
+ // }
+ if ($field_name == 'block-pagetitle-2') {
+ $depth_title = $node->get('block-pagetitle-2')->getString();
+ $variables['classes_array'][] = "menu-depth-" . $depth_title;
+
+ }
}
+
+
}
+
+//////////////////////////////////////////////////
+
+// $variables['classes_array'][] = "menu-depth-" . $depth;
+
//////////////////////////////////////////////////
// function rorschach_preprocess_field(&$variables){
@@ -121,3 +133,4 @@ function rorschach_preprocess_field(&$variables) {
// static $counter = 0;
// $vars['counter'] = $counter++;
// }
+
diff --git a/web/themes/custom/rorschach/scripts/main.js b/web/themes/custom/rorschach/scripts/main.js
index 499c0ba..ab5afe3 100644
--- a/web/themes/custom/rorschach/scripts/main.js
+++ b/web/themes/custom/rorschach/scripts/main.js
@@ -156,3 +156,4 @@ jQuery(function($) {
// ///////////////////////////////
+