3 Commits

18 changed files with 922 additions and 276 deletions

View File

@ -8,7 +8,7 @@ id: node.materiau.title
field_name: title
entity_type: node
bundle: materiau
label: Title
label: Name
description: ''
required: true
translatable: false

View File

@ -32,7 +32,6 @@ third_party_settings:
- group_contents
- group_media
- group_taxonomy
- group_internal
parent_name: ''
weight: 0
format_type: tabs
@ -93,12 +92,12 @@ third_party_settings:
group_internal:
children:
- langcode
- translation
- field_date
- field_workflow
- field_migration
- field_memo
parent_name: group_htabs
weight: 13
parent_name: ''
weight: 1
format_type: tab
format_settings:
id: ''
@ -123,7 +122,7 @@ content:
third_party_settings: { }
region: content
field_date:
weight: 26
weight: 3
settings: { }
third_party_settings: { }
type: daterange_default

View File

@ -22,7 +22,6 @@ third_party_settings:
children:
- group_contents
- group_info
- group_internal
parent_name: ''
weight: 1
format_type: tabs
@ -55,8 +54,8 @@ third_party_settings:
- translation
- field_workflow
- field_migration
parent_name: group_tabs
weight: 22
parent_name: ''
weight: 2
format_type: tab
format_settings:
id: ''
@ -109,8 +108,7 @@ content:
region: content
field_public_address:
weight: 5
settings:
default_country: null
settings: { }
third_party_settings: { }
type: address_default
region: content

View File

@ -11,7 +11,7 @@ id: node.materiau.field_famille
field_name: field_famille
entity_type: node
bundle: materiau
label: Famille
label: Family
description: ''
required: true
translatable: false

View File

@ -16,12 +16,10 @@ translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:node'
handler: views
handler_settings:
target_bundles:
materiau: materiau
sort:
field: _none
auto_create: false
auto_create_bundle: ''
view:
view_name: entity_references
display_name: entity_reference_1
arguments: { }
field_type: entity_reference

View File

@ -3,7 +3,7 @@ langcode: en
status: true
dependencies: { }
name: card_medium
label: card-medium
label: 'card-medium (210x295)'
effects:
34e936a0-1fee-4327-9553-b4f48bde14e6:
uuid: 34e936a0-1fee-4327-9553-b4f48bde14e6

View File

@ -0,0 +1,15 @@
uuid: 7b14e7ed-c822-49e2-9dfe-2bd07f535cb0
langcode: en
status: true
dependencies: { }
name: card_small
label: 'card-small (100x140)'
effects:
b36b5a37-6235-40e1-aef1-54fe4244ace6:
uuid: b36b5a37-6235-40e1-aef1-54fe4244ace6
id: image_scale_and_crop
weight: 1
data:
width: 100
height: 140
anchor: center-center

View File

@ -15,4 +15,4 @@ id: node.materiau
target_entity_type_id: node
target_bundle: materiau
default_langcode: site_default
language_alterable: true
language_alterable: false

View File

@ -13,5 +13,5 @@ type: materiau
description: ''
help: ''
new_revision: false
preview_mode: 1
preview_mode: 0
display_submitted: false

View File

@ -7,9 +7,10 @@ dependencies:
- node
- taxonomy
- search_api
- materio_sapi
config:
- field.storage.node.body
- field.storage.node.field_famille
- field.storage.node.body
- field.storage.node.field_tags
- field.storage.taxonomy_term.field_synonyms
- field.storage.node.field_thesaurus
@ -209,9 +210,12 @@ processor_settings:
- processed
- tag_name
- tag_synonyms
- tag_tid
- thesaurus_name
- thesaurus_synonyms
- thesaurus_tid
- title
- uuid
replacement: '|9999999998|'
weights:
postprocess_query: 0

View File

@ -3,6 +3,7 @@ langcode: en
status: true
dependencies:
config:
- field.storage.node.field_attachments
- field.storage.node.field_distributor
- field.storage.node.field_linked_articles
- field.storage.node.field_linked_materials
@ -16,6 +17,7 @@ dependencies:
- field.storage.node.field_thesaurus
- field.storage.node.field_visuel
- field.storage.node.field_workflow
- image.style.card_small
- image.style.medium
- node.type.article
- node.type.materiau
@ -27,6 +29,7 @@ dependencies:
module:
- computed_field
- content_lock
- file
- image
- materio_samples
- node
@ -287,7 +290,7 @@ display:
batch_size: 10
form_step: true
buttons: false
clear_on_exposed: false
clear_on_exposed: true
action_title: Action
selected_actions:
'entity:break_lock:node': 'entity:break_lock:node'
@ -300,9 +303,11 @@ display:
node_make_unsticky_action: 0
node_save_action: node_save_action
node_make_sticky_action: 0
views_bulk_edit: 0
simplenews_send_action: 0
simplenews_stop_action: 0
views_bulk_edit: views_bulk_edit
views_bulk_operations_delete_entity: views_bulk_operations_delete_entity
workflow_node_given_state_action: 0
workflow_node_given_state_action: workflow_node_given_state_action
workflow_node_next_state_action: 0
pathauto_update_alias: pathauto_update_alias
'entity:delete_action:node': 0
@ -314,8 +319,13 @@ display:
label_override: ''
node_save_action:
label_override: ''
views_bulk_edit:
label_override: ''
get_bundles_from_results: 1
views_bulk_operations_delete_entity:
label_override: ''
workflow_node_given_state_action:
label_override: ''
pathauto_update_alias:
label_override: ''
plugin_id: views_bulk_operations_bulk_form
@ -2070,36 +2080,36 @@ display:
pid: root
depth: '1'
type: container
field_migration_value:
weight: '-23'
id: field_migration_value
pid: container-0
depth: '2'
type: filter
field_workflow_value:
weight: '-22'
id: field_workflow_value
pid: container-0
depth: '2'
type: filter
field_famille_value:
weight: '-21'
id: field_famille_value
pid: container-0
depth: '2'
type: filter
title:
weight: '-20'
weight: '-23'
id: title
pid: container-0
depth: '2'
type: filter
field_reference_value:
weight: '-19'
weight: '-22'
id: field_reference_value
pid: container-0
depth: '2'
type: filter
tid:
weight: '-21'
id: tid
pid: container-0
depth: '2'
type: filter
field_famille_value:
weight: '-20'
id: field_famille_value
pid: container-0
depth: '2'
type: filter
field_workflow_value:
weight: '-19'
id: field_workflow_value
pid: container-0
depth: '2'
type: filter
field_thesaurus_target_id:
weight: '-18'
id: field_thesaurus_target_id
@ -2112,24 +2122,24 @@ display:
pid: container-0
depth: '2'
type: filter
tid:
weight: '-16'
id: tid
pid: container-0
depth: '2'
type: filter
field_samples_location:
weight: '-15'
weight: '-16'
id: field_samples_location
pid: container-0
depth: '2'
type: filter
field_memo_value:
weight: '-14'
weight: '-15'
id: field_memo_value
pid: container-0
depth: '2'
type: filter
field_migration_value:
weight: '-14'
id: field_migration_value
pid: container-0
depth: '2'
type: filter
container-3:
container_type: container
title: ''
@ -2308,7 +2318,7 @@ display:
batch_size: 10
form_step: true
buttons: false
clear_on_exposed: false
clear_on_exposed: true
action_title: Action
selected_actions:
'entity:break_lock:node': 'entity:break_lock:node'
@ -2321,9 +2331,11 @@ display:
node_make_unsticky_action: 0
node_save_action: node_save_action
node_make_sticky_action: 0
views_bulk_edit: 0
simplenews_send_action: 0
simplenews_stop_action: 0
views_bulk_edit: views_bulk_edit
views_bulk_operations_delete_entity: views_bulk_operations_delete_entity
workflow_node_given_state_action: 0
workflow_node_given_state_action: workflow_node_given_state_action
workflow_node_next_state_action: 0
pathauto_update_alias: pathauto_update_alias
'entity:delete_action:node': 0
@ -2335,8 +2347,13 @@ display:
label_override: ''
node_save_action:
label_override: ''
views_bulk_edit:
label_override: ''
get_bundles_from_results: 1
views_bulk_operations_delete_entity:
label_override: ''
workflow_node_given_state_action:
label_override: ''
pathauto_update_alias:
label_override: ''
plugin_id: views_bulk_operations_bulk_form
@ -2406,6 +2423,71 @@ display:
entity_type: node
entity_field: nid
plugin_id: field
field_reference:
id: field_reference
table: node__field_reference
field: field_reference
relationship: none
group_type: group
admin_label: ''
label: Reference
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: h6
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: computed_string
settings:
sanitized: 1
cache_unit: '-1'
cache_duration: '1'
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
title:
id: title
table: node_field_data
@ -2413,7 +2495,7 @@ display:
relationship: none
group_type: group
admin_label: ''
label: Title
label: Name
exclude: false
alter:
alter_text: true
@ -2471,71 +2553,6 @@ display:
entity_type: node
entity_field: title
plugin_id: field
field_reference:
id: field_reference
table: node__field_reference
field: field_reference
relationship: none
group_type: group
admin_label: ''
label: Reference
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: computed_string
settings:
sanitized: 1
cache_unit: '-1'
cache_duration: '1'
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
field_materiau_images:
id: field_materiau_images
table: node__field_materiau_images
@ -2572,7 +2589,7 @@ display:
trim: false
preserve_tags: ''
html: false
element_type: ''
element_type: div
element_class: ''
element_label_type: ''
element_label_class: ''
@ -2587,7 +2604,7 @@ display:
click_sort_column: title
type: image
settings:
image_style: medium
image_style: card_small
image_link: ''
group_column: ''
group_columns: { }
@ -3144,6 +3161,69 @@ display:
separator: '<br/>'
field_api_classes: false
plugin_id: field
field_attachments:
id: field_attachments
table: node__field_attachments
field: field_attachments
relationship: none
group_type: group
admin_label: ''
label: Attachments
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: file_default
settings:
use_description_as_link_text: true
group_column: ''
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
field_workflow:
id: field_workflow
table: node__field_workflow
@ -3675,7 +3755,7 @@ display:
exposed: true
expose:
operator_id: title_op
label: Title
label: Name
description: ''
use_operator: false
operator: title_op
@ -3685,10 +3765,17 @@ display:
multiple: false
remember_roles:
authenticated: authenticated
unverified: '0'
anonymous: '0'
free_user: '0'
contact_company: '0'
alpha_testeur: '0'
student: '0'
adherent: '0'
translator: '0'
admin_showroom: '0'
admin: '0'
root: '0'
user: '0'
placeholder: ''
is_grouped: false
group_info:
@ -3705,24 +3792,24 @@ display:
entity_type: node
entity_field: title
plugin_id: string
field_tags_target_id:
id: field_tags_target_id
table: node__field_tags
field: field_tags_target_id
field_reference_value:
id: field_reference_value
table: node__field_reference
field: field_reference_value
relationship: none
group_type: group
admin_label: ''
operator: or
value: { }
operator: contains
value: ''
group: 1
exposed: true
expose:
operator_id: field_tags_target_id_op
label: Tags
operator_id: field_reference_value_op
label: Reference
description: ''
use_operator: false
operator: field_tags_target_id_op
identifier: field_tags_target_id
operator: field_reference_value_op
identifier: field_reference_value
required: false
remember: false
multiple: false
@ -3739,7 +3826,7 @@ display:
admin_showroom: '0'
admin: '0'
root: '0'
reduce: false
placeholder: ''
is_grouped: false
group_info:
label: ''
@ -3752,73 +3839,7 @@ display:
default_group: All
default_group_multiple: { }
group_items: { }
reduce_duplicates: false
type: textfield
limit: true
vid: tags
hierarchy: false
error_message: true
parent: 0
level_labels: ''
force_deepest: false
plugin_id: taxonomy_index_tid
field_thesaurus_target_id:
id: field_thesaurus_target_id
table: node__field_thesaurus
field: field_thesaurus_target_id
relationship: none
group_type: group
admin_label: ''
operator: or
value: { }
group: 1
exposed: true
expose:
operator_id: field_thesaurus_target_id_op
label: Thesaurus
description: ''
use_operator: false
operator: field_thesaurus_target_id_op
identifier: field_thesaurus_target_id
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
unverified: '0'
anonymous: '0'
free_user: '0'
contact_company: '0'
alpha_testeur: '0'
student: '0'
adherent: '0'
translator: '0'
admin_showroom: '0'
admin: '0'
root: '0'
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: { }
reduce_duplicates: false
type: textfield
limit: true
vid: thesaurus
hierarchy: false
error_message: true
parent: 0
level_labels: ''
force_deepest: false
plugin_id: taxonomy_index_tid
plugin_id: string
tid:
id: tid
table: taxonomy_index
@ -3876,10 +3897,10 @@ display:
level_labels: ''
force_deepest: false
plugin_id: taxonomy_index_tid
field_migration_value:
id: field_migration_value
table: node__field_migration
field: field_migration_value
field_famille_value:
id: field_famille_value
table: node__field_famille
field: field_famille_value
relationship: none
group_type: group
admin_label: ''
@ -3888,21 +3909,28 @@ display:
group: 1
exposed: true
expose:
operator_id: field_migration_value_op
label: Migration
operator_id: field_famille_value_op
label: Family
description: ''
use_operator: false
operator: field_migration_value_op
identifier: field_migration_value
operator: field_famille_value_op
identifier: field_famille_value
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
unverified: '0'
anonymous: '0'
free_user: '0'
contact_company: '0'
alpha_testeur: '0'
student: '0'
adherent: '0'
translator: '0'
admin_showroom: '0'
admin: '0'
root: '0'
user: '0'
reduce: false
is_grouped: false
group_info:
@ -3917,7 +3945,7 @@ display:
default_group_multiple: { }
group_items: { }
reduce_duplicates: false
plugin_id: workflow_state
plugin_id: list_field
field_workflow_value:
id: field_workflow_value
table: node__field_workflow
@ -3960,29 +3988,41 @@ display:
group_items: { }
reduce_duplicates: false
plugin_id: workflow_state
select_translation:
id: select_translation
table: node_field_data
field: select_translation
field_thesaurus_target_id:
id: field_thesaurus_target_id
table: node__field_thesaurus
field: field_thesaurus_target_id
relationship: none
group_type: group
admin_label: ''
operator: '='
value: default
operator: or
value: { }
group: 1
exposed: false
exposed: true
expose:
operator_id: ''
label: ''
operator_id: field_thesaurus_target_id_op
label: Thesaurus
description: ''
use_operator: false
operator: ''
identifier: ''
operator: field_thesaurus_target_id_op
identifier: field_thesaurus_target_id
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
unverified: '0'
anonymous: '0'
free_user: '0'
contact_company: '0'
alpha_testeur: '0'
student: '0'
adherent: '0'
translator: '0'
admin_showroom: '0'
admin: '0'
root: '0'
reduce: false
is_grouped: false
group_info:
label: ''
@ -3995,11 +4035,73 @@ display:
default_group: All
default_group_multiple: { }
group_items: { }
priorities: ''
default_language_only: 0
include_content_with_unpublished_translation: 0
entity_type: node
plugin_id: select_translation_filter
reduce_duplicates: false
type: textfield
limit: true
vid: thesaurus
hierarchy: false
error_message: true
parent: 0
level_labels: ''
force_deepest: false
plugin_id: taxonomy_index_tid
field_tags_target_id:
id: field_tags_target_id
table: node__field_tags
field: field_tags_target_id
relationship: none
group_type: group
admin_label: ''
operator: or
value: { }
group: 1
exposed: true
expose:
operator_id: field_tags_target_id_op
label: Tags
description: ''
use_operator: false
operator: field_tags_target_id_op
identifier: field_tags_target_id
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
unverified: '0'
anonymous: '0'
free_user: '0'
contact_company: '0'
alpha_testeur: '0'
student: '0'
adherent: '0'
translator: '0'
admin_showroom: '0'
admin: '0'
root: '0'
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: { }
reduce_duplicates: false
type: textfield
limit: true
vid: tags
hierarchy: false
error_message: true
parent: 0
level_labels: ''
force_deepest: false
plugin_id: taxonomy_index_tid
field_samples_location:
id: field_samples_location
table: node__field_samples
@ -4089,41 +4191,29 @@ display:
default_group_multiple: { }
group_items: { }
plugin_id: string
field_reference_value:
id: field_reference_value
table: node__field_reference
field: field_reference_value
select_translation:
id: select_translation
table: node_field_data
field: select_translation
relationship: none
group_type: group
admin_label: ''
operator: '='
value: ''
value: default
group: 1
exposed: true
exposed: false
expose:
operator_id: field_reference_value_op
label: Reference
operator_id: ''
label: ''
description: ''
use_operator: false
operator: field_reference_value_op
identifier: field_reference_value
operator: ''
identifier: ''
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
unverified: '0'
anonymous: '0'
free_user: '0'
contact_company: '0'
alpha_testeur: '0'
student: '0'
adherent: '0'
translator: '0'
admin_showroom: '0'
admin: '0'
root: '0'
placeholder: ''
is_grouped: false
group_info:
label: ''
@ -4136,11 +4226,15 @@ display:
default_group: All
default_group_multiple: { }
group_items: { }
plugin_id: string
field_famille_value:
id: field_famille_value
table: node__field_famille
field: field_famille_value
priorities: ''
default_language_only: 0
include_content_with_unpublished_translation: 0
entity_type: node
plugin_id: select_translation_filter
field_migration_value:
id: field_migration_value
table: node__field_migration
field: field_migration_value
relationship: none
group_type: group
admin_label: ''
@ -4149,28 +4243,21 @@ display:
group: 1
exposed: true
expose:
operator_id: field_famille_value_op
label: Famille
operator_id: field_migration_value_op
label: Migration
description: ''
use_operator: false
operator: field_famille_value_op
identifier: field_famille_value
operator: field_migration_value_op
identifier: field_migration_value
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
unverified: '0'
anonymous: '0'
free_user: '0'
contact_company: '0'
alpha_testeur: '0'
student: '0'
adherent: '0'
translator: '0'
admin_showroom: '0'
admin: '0'
root: '0'
user: '0'
reduce: false
is_grouped: false
group_info:
@ -4185,7 +4272,7 @@ display:
default_group_multiple: { }
group_items: { }
reduce_duplicates: false
plugin_id: list_field
plugin_id: workflow_state
filter_groups:
operator: AND
groups:
@ -4201,6 +4288,7 @@ display:
- 'user.node_grants:view'
- user.roles
tags:
- 'config:field.storage.node.field_attachments'
- 'config:field.storage.node.field_distributor'
- 'config:field.storage.node.field_linked_articles'
- 'config:field.storage.node.field_linked_materials'
@ -4631,7 +4719,7 @@ display:
click_sort_column: target_id
type: image
settings:
image_style: medium
image_style: card_small
image_link: ''
group_column: ''
group_columns: { }

View File

@ -1233,7 +1233,7 @@ display:
group_items: { }
plugin_id: string
sorts: { }
title: Tags
title: Taxonomy
header:
result:
id: result
@ -3765,6 +3765,7 @@ display:
fields: false
filters: false
filter_groups: false
title: false
row:
type: fields
options: { }
@ -4577,6 +4578,7 @@ display:
weight: 0
context: '0'
menu_name: main
title: Thesaurus
cache_metadata:
max-age: 0
contexts:
@ -4683,6 +4685,7 @@ display:
fields: false
filters: false
filter_groups: false
title: false
row:
type: fields
options: { }
@ -5495,6 +5498,7 @@ display:
weight: 0
context: '0'
menu_name: main
title: Tags
cache_metadata:
max-age: 0
contexts:

View File

@ -0,0 +1,417 @@
uuid: 3555fe38-1079-44a4-b09f-9573151b3080
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_materiau_images
- field.storage.node.field_reference
- image.style.card_small
- node.type.materiau
module:
- computed_field
- entity_reference_revisions
- image
- node
- user
id: entity_references
label: 'Entity references'
module: views
description: ''
tag: ''
base_table: node_field_data
base_field: nid
core: 8.x
display:
default:
display_plugin: default
id: default
display_title: Master
position: 0
display_options:
access:
type: perm
options:
perm: 'access content'
cache:
type: tag
options: { }
query:
type: views_query
options:
disable_sql_rewrite: false
distinct: false
replica: false
query_comment: ''
query_tags: { }
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
pager:
type: mini
options:
items_per_page: 10
offset: 0
id: 0
total_pages: null
expose:
items_per_page: false
items_per_page_label: 'Items per page'
items_per_page_options: '5, 10, 25, 50'
items_per_page_options_all: false
items_per_page_options_all_label: '- All -'
offset: false
offset_label: Offset
tags:
previous:
next:
style:
type: default
options:
grouping: { }
row_class: ''
default_row_class: true
uses_fields: false
row:
type: fields
options:
inline: { }
separator: ''
hide_empty: false
default_field_elements: true
fields:
field_materiau_images:
id: field_materiau_images
table: node__field_materiau_images
field: field_materiau_images
relationship: none
group_type: group
admin_label: ''
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: false
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: image
settings:
image_style: card_small
image_link: ''
group_column: ''
group_columns: { }
group_rows: true
delta_limit: 1
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
plugin_id: field
title:
id: title
table: node_field_data
field: title
relationship: none
group_type: group
admin_label: ''
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: 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: false
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
entity_type: node
entity_field: title
plugin_id: field
field_reference:
id: field_reference
table: node__field_reference
field: field_reference
relationship: none
group_type: group
admin_label: ''
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: false
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: computed_string
settings:
sanitized: 1
cache_unit: '-1'
cache_duration: '1'
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
filters:
status:
value: '1'
table: node_field_data
field: status
plugin_id: boolean
entity_type: node
entity_field: status
id: status
expose:
operator: ''
group: 1
sorts:
created:
id: created
table: node_field_data
field: created
order: DESC
entity_type: node
entity_field: created
plugin_id: date
relationship: none
group_type: group
admin_label: ''
exposed: false
expose:
label: ''
granularity: second
header: { }
footer: { }
empty: { }
relationships: { }
arguments: { }
display_extenders: { }
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url.query_args
- 'user.node_grants:view'
- user.permissions
tags:
- 'config:field.storage.node.field_materiau_images'
- 'config:field.storage.node.field_reference'
entity_reference_1:
display_plugin: entity_reference
id: entity_reference_1
display_title: 'Entity Reference materials'
position: 1
display_options:
display_extenders:
views_ef_fieldset: { }
style:
type: entity_reference
options:
search_fields:
title: title
field_reference: field_reference
filters:
status:
id: status
table: node_field_data
field: status
relationship: none
group_type: group
admin_label: ''
operator: '='
value: '1'
group: 1
exposed: false
expose:
operator_id: ''
label: ''
description: ''
use_operator: false
operator: ''
identifier: ''
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
is_grouped: false
group_info:
label: ''
description: ''
identifier: ''
optional: true
widget: select
multiple: false
remember: false
default_group: All
default_group_multiple: { }
group_items: { }
plugin_id: boolean
entity_type: node
entity_field: status
type:
id: type
table: node_field_data
field: type
value:
materiau: materiau
entity_type: node
entity_field: type
plugin_id: bundle
defaults:
filters: false
filter_groups: false
filter_groups:
operator: AND
groups:
1: AND
display_description: ''
row:
type: entity_reference_revisions
options:
default_field_elements: true
inline:
field_materiau_images: field_materiau_images
title: title
field_reference: field_reference
separator: '-'
hide_empty: false
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- 'user.node_grants:view'
- user.permissions
tags:
- 'config:field.storage.node.field_materiau_images'
- 'config:field.storage.node.field_reference'

View File

@ -11,7 +11,7 @@ module: workflow
from_sid: workflow_creation
to_sid: workflow_imported
roles:
workflow_author: workflow_author
anonymous: anonymous
workflow_author: '0'
anonymous: '0'
admin: '0'
root: '0'

View File

@ -21,7 +21,7 @@ editors_menus.company_add:
title: 'Add Companie'
appears_on:
- view.admin_taxo.page_1
editors_menus.showroom_add:
route_name: entity.taxonomy_term.add_form
route_parameters:
@ -29,6 +29,22 @@ editors_menus.showroom_add:
title: 'Add Showroom'
appears_on:
- view.admin_taxo.page_2
editors_menus.thesaurus_add:
route_name: entity.taxonomy_term.add_form
route_parameters:
taxonomy_vocabulary: 'thesaurus'
title: 'Add Thesaurus'
appears_on:
- view.admin_taxo.page_3
editors_menus.tag_add:
route_name: entity.taxonomy_term.add_form
route_parameters:
taxonomy_vocabulary: 'tags'
title: 'Add Tag'
appears_on:
- view.admin_taxo.page_4
editors_menus.user_add:
route_name: user.admin_create

View File

@ -61,7 +61,16 @@ function computed_field_field_reference_compute($entity_type_manager, $entity, $
*/
function materio_id_form_node_materiau_edit_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) {
// dsm($form_id);
// ksm($form);
$node = $form_state->getFormObject()->getEntity();
// lock the family filed if already filled
if(isset($form['field_famille']) && $family = $node->field_famille->value){
// dsm($family);
$form['field_famille']['widget']['#disabled'] = true;
}
// adding reference to the form title
$ref = $node->field_reference->value;
// dsm($ref);
if($ref != ''){

View File

@ -0,0 +1,65 @@
<?php
/**
* @file
* Functions to support theming in the Seven theme.
*/
use Drupal\Core\Form\FormStateInterface;
/**
* Implements hook_preprocess_HOOK() for HTML document templates.
*/
// function matminimal_preprocess_html(&$variables) {
// // If on a node add or edit page, add a node-layout class.
// $path_args = explode('/', \Drupal::request()->getPathInfo());
// if ($suggestions = theme_get_suggestions($path_args, 'page', '-')) {
// foreach ($suggestions as $suggestion) {
// // dsm($suggestion);
// preg_match('/taxonomy-manage-[^-]+-add$/', $suggestion, $matches);
// // ksm($matches);
// if ($suggestion === 'page--taxonomy-term-edit' || isset($matches)) {
// $variables['attributes']['class'][] = 'node-form-layout';
// }
// }
// }
// }
// function matminimal_form_alter(&$form, FormStateInterface $form_state, $form_id){
// // dsm($form_id);
// // create a colomuned term form (not working yet)
// if(in_array($form_id, ['taxonomy_term_company_form', 'taxonomy_term_showroom_form'])){
// // ksm($form);
// $form['#theme'] = ['term_edit_form'];
// $form['#attached']['library'][] = 'seven/node-form';
//
// $form['advanced']['#type'] = 'container';
// $form['meta']['#type'] = 'container';
// $form['meta']['#access'] = TRUE;
// $form['meta']['changed']['#wrapper_attributes']['class'][] = 'container-inline';
// $form['meta']['author']['#wrapper_attributes']['class'][] = 'container-inline';
//
// $form['revision_information']['#type'] = 'container';
// $form['revision_information']['#group'] = 'meta';
// }
// }
/**
* Implements hook_form_BASE_FORM_ID_alter() for \Drupal\node\NodeForm.
*
* Changes vertical tabs to container.
*/
function matminimal_form_node_form_alter(&$form, FormStateInterface $form_state) {
$form['#theme'] = ['node_edit_form'];
$form['#attached']['library'][] = 'seven/node-form';
$form['advanced']['#type'] = 'container';
$form['meta']['#type'] = 'container';
$form['meta']['#access'] = TRUE;
$form['meta']['changed']['#wrapper_attributes']['class'][] = 'container-inline';
$form['meta']['author']['#wrapper_attributes']['class'][] = 'container-inline';
$form['revision_information']['#type'] = 'container';
$form['revision_information']['#group'] = 'meta';
}

View File

@ -0,0 +1,33 @@
{#
/**
* @file
* Theme override for a node edit form.
*
* Two column template for the node add/edit form.
*
* This template will be used when a node edit form specifies 'node_edit_form'
* as its #theme callback. Otherwise, by default, node add/edit forms will be
* themed by form.html.twig.
*
* Available variables:
* - form: The node add/edit form.
*
* @see seven_form_node_form_alter()
*/
#}
<div class="layout-node-form clearfix">
<div class="layout-region layout-region-node-main">
{{ form|without('advanced', 'footer', 'actions', 'group_internal') }}
</div>
<div class="layout-region layout-region-node-secondary">
{{ form.group_internal }}
{{ form.advanced }}
{{ form.actions }}
</div>
<div class="layout-region layout-region-node-footer">
<div class="layout-region-node-footer__content">
{{ form.footer }}
</div>
</div>
</div>