added statics to home

This commit is contained in:
2021-11-15 11:25:53 +01:00
parent 8f79e658a7
commit 5ce52dff6a
15 changed files with 572 additions and 90 deletions
@@ -1,4 +1,4 @@
uuid: null
uuid: 5820bac1-d0c1-45a7-8259-b1f95dc7d93c
langcode: fr
status: true
dependencies:
@@ -4,15 +4,18 @@ status: true
dependencies:
config:
- field.field.node.static.field_fichiers
- field.field.node.static.field_images
- field.field.node.static.field_liens
- field.field.node.static.field_page_statique_liees
- field.field.node.static.field_partenaires
- field.field.node.static.field_ress
- field.field.node.static.field_textes
- image.style.thumbnail
- node.type.static
module:
- field_group
- file
- image
- link
- paragraphs
third_party_settings:
@@ -54,6 +57,7 @@ third_party_settings:
group_media:
children:
- field_fichiers
- field_images
parent_name: group_tabs
weight: 28
format_type: tab
@@ -125,6 +129,14 @@ content:
third_party_settings: { }
type: file_generic
region: content
field_images:
weight: 2
settings:
progress_indicator: throbber
preview_image_style: thumbnail
third_party_settings: { }
type: image_image
region: content
field_liens:
weight: 0
settings:
@@ -0,0 +1,67 @@
uuid: 3d3f7a81-de28-4b2e-9797-9b020f419fe3
langcode: fr
status: true
dependencies:
config:
- core.entity_view_mode.node.teaser
- field.field.node.static.field_fichiers
- field.field.node.static.field_images
- field.field.node.static.field_liens
- field.field.node.static.field_page_statique_liees
- field.field.node.static.field_partenaires
- field.field.node.static.field_ress
- field.field.node.static.field_textes
- node.type.static
module:
- image_delta_formatter
- manage_display
- paragraphs
_core:
default_config_hash: oGSMA6gtfWJ1AlOJQfaQ3Qpi7ZarWaHqInUX9DaJLzo
id: node.static.teaser
targetEntityType: node
bundle: static
mode: teaser
content:
field_images:
type: image_delta_formatter
weight: 0
region: content
label: hidden
settings:
image_style: ''
image_link: ''
deltas: 0
deltas_reversed: false
third_party_settings: { }
field_textes:
type: paragraph_summary
weight: 2
label: hidden
settings: { }
third_party_settings: { }
region: content
links:
weight: 3
region: content
settings: { }
third_party_settings: { }
title:
label: hidden
type: title
weight: 1
region: content
settings:
tag: h2
linked: true
third_party_settings: { }
hidden:
created: true
field_fichiers: true
field_liens: true
field_page_statique_liees: true
field_partenaires: true
field_ress: true
langcode: true
search_api_excerpt: true
uid: true
@@ -15,14 +15,14 @@ mode: default
content:
field_texte:
weight: 1
label: above
label: hidden
settings: { }
third_party_settings: { }
type: text_default
region: content
field_titre:
weight: 0
label: above
label: hidden
settings:
link_to_entity: false
third_party_settings: { }
@@ -0,0 +1,56 @@
uuid: 15f78867-4f39-4210-826d-5864313c65ec
langcode: fr
status: true
dependencies:
config:
- core.entity_view_mode.paragraph.preview
- field.field.paragraph.texte.field_texte
- field.field.paragraph.texte.field_titre
- paragraphs.paragraphs_type.texte
module:
- advanced_text_formatter
id: paragraph.texte.preview
targetEntityType: paragraph
bundle: texte
mode: preview
content:
field_texte:
weight: 1
label: hidden
settings:
trim_length: '600'
ellipsis: '1'
word_boundary: '1'
filter: input
format: plain_text
allowed_html:
- a
- b
- br
- dd
- dl
- dt
- em
- i
- li
- ol
- p
- strong
- u
- ul
use_summary: 0
token_replace: 0
autop: 0
third_party_settings: { }
type: advanced_text
region: content
field_titre:
weight: 0
label: hidden
settings:
link_to_entity: false
third_party_settings: { }
type: string
region: content
hidden:
search_api_excerpt: true
@@ -0,0 +1,45 @@
uuid: 0643b517-87f5-4668-b8a8-a9b910a7a642
langcode: fr
status: true
dependencies:
config:
- field.storage.node.field_images
- node.type.static
module:
- content_translation
- image
third_party_settings:
content_translation:
translation_sync:
file: '0'
alt: '0'
title: '0'
id: node.static.field_images
field_name: field_images
entity_type: node
bundle: static
label: Images
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
file_directory: '[date:custom:Y]-[date:custom:m]'
file_extensions: 'png gif jpg jpeg'
max_filesize: ''
max_resolution: ''
min_resolution: ''
alt_field: false
alt_field_required: false
title_field: false
title_field_required: false
default_image:
uuid: ''
alt: ''
title: ''
width: null
height: null
handler: 'default:file'
handler_settings: { }
field_type: image
@@ -5,6 +5,7 @@ dependencies:
config:
- page_manager.page.home
- views.view.actus_blocks_pages
- views.view.home_nodes
content:
- 'block_content:link:3ee1f633-aaa7-4b4c-a42a-02206e26d3a2'
module:
@@ -39,6 +40,28 @@ variant_settings:
weight: 1
uuid: 1aa3934c-9f4d-4f46-b01c-646650c1f5d7
context_mapping: { }
a9152c77-cd40-4afd-965a-22e8a26e0111:
id: 'views_block:home_nodes-block_1'
label: ''
provider: views
label_display: '0'
views_label: ''
items_per_page: none
region: content
weight: -1
uuid: a9152c77-cd40-4afd-965a-22e8a26e0111
context_mapping: { }
43740d19-3425-40db-986a-bde244d94ae5:
id: 'views_block:home_nodes-block_2'
label: ''
provider: views
label_display: '0'
views_label: ''
items_per_page: none
region: content
weight: 2
uuid: 43740d19-3425-40db-986a-bde244d94ae5
context_mapping: { }
id: panels_variant
uuid: 7ba3fd73-2cc4-40a4-b645-7788cc1439aa
label: null
@@ -7,4 +7,5 @@ label: Partenaire
icon_uuid: null
icon_default: null
description: ''
save_empty: null
behavior_plugins: { }
@@ -7,4 +7,5 @@ label: Texte
icon_uuid: null
icon_default: null
description: 'a title and a text'
save_empty: null
behavior_plugins: { }
+1 -1
View File
@@ -1,6 +1,6 @@
uuid: dc71c93f-d3ae-4c7d-a5e6-53fda7b6877a
langcode: fr
status: true
status: false
dependencies:
module:
- node
+1 -1
View File
@@ -1,6 +1,6 @@
uuid: 6fcd128b-4d61-4227-98c0-0aaf6e0fc8ff
langcode: fr
status: true
status: false
dependencies:
config:
- core.entity_view_mode.node.rss
+281
View File
@@ -0,0 +1,281 @@
uuid: 4b7e392a-f1f3-459f-9e90-c119c9352b32
langcode: fr
status: true
dependencies:
config:
- core.entity_view_mode.node.teaser
- node.type.static
module:
- node
- user
id: home_nodes
label: 'home nodes'
module: views
description: ''
tag: ''
base_table: node_field_data
base_field: nid
display:
default:
display_plugin: default
id: default
display_title: Default
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: none
options:
items_per_page: null
offset: 0
style:
type: default
row:
type: 'entity:node'
options:
relationship: none
view_mode: teaser
fields: { }
filters:
status:
value: '1'
table: node_field_data
field: status
plugin_id: boolean
entity_type: node
entity_field: status
id: status
expose:
operator: ''
operator_limit_selection: false
operator_list: { }
group: 1
type:
id: type
table: node_field_data
field: type
value:
static: static
entity_type: node
entity_field: type
plugin_id: bundle
expose:
operator_limit_selection: false
operator_list: { }
nid:
id: nid
table: node_field_data
field: nid
relationship: none
group_type: group
admin_label: ''
operator: '='
value:
min: ''
max: ''
value: '3'
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
placeholder: ''
min_placeholder: ''
max_placeholder: ''
is_grouped: false
group_info:
label: ''
description: ''
identifier: ''
optional: true
widget: select
multiple: false
remember: false
default_group: All
default_group_multiple: { }
group_items: { }
entity_type: node
entity_field: nid
plugin_id: numeric
sorts: { }
title: 'Home node'
header: { }
footer: { }
empty: { }
relationships: { }
arguments: { }
display_extenders: { }
cache_metadata:
max-age: -1
contexts:
- 'languages:language_interface'
- 'user.node_grants:view'
- user.permissions
tags: { }
block_1:
display_plugin: block
id: block_1
display_title: 'Home node appel'
position: 1
display_options:
display_extenders:
views_ef_fieldset: { }
display_description: ''
defaults:
filters: true
filter_groups: true
block_description: 'Home node appel'
allow:
items_per_page: false
offset: '0'
pager: '0'
hide_fields: '0'
sort_fields: '0'
disable_filters: '0'
configure_sorts: '0'
cache_metadata:
max-age: -1
contexts:
- 'languages:language_interface'
- 'user.node_grants:view'
- user.permissions
tags: { }
block_2:
display_plugin: block
id: block_2
display_title: 'Home node programme'
position: 1
display_options:
display_extenders:
views_ef_fieldset: { }
display_description: ''
defaults:
filters: false
filter_groups: false
block_description: 'Home node programme'
allow:
items_per_page: false
offset: '0'
pager: '0'
hide_fields: '0'
sort_fields: '0'
disable_filters: '0'
configure_sorts: '0'
filters:
status:
value: '1'
table: node_field_data
field: status
plugin_id: boolean
entity_type: node
entity_field: status
id: status
expose:
operator: ''
operator_limit_selection: false
operator_list: { }
group: 1
type:
id: type
table: node_field_data
field: type
value:
static: static
entity_type: node
entity_field: type
plugin_id: bundle
expose:
operator_limit_selection: false
operator_list: { }
nid:
id: nid
table: node_field_data
field: nid
relationship: none
group_type: group
admin_label: ''
operator: '='
value:
min: ''
max: ''
value: '4'
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
placeholder: ''
min_placeholder: ''
max_placeholder: ''
is_grouped: false
group_info:
label: ''
description: ''
identifier: ''
optional: true
widget: select
multiple: false
remember: false
default_group: All
default_group_multiple: { }
group_items: { }
entity_type: node
entity_field: nid
plugin_id: numeric
filter_groups:
operator: AND
groups:
1: AND
cache_metadata:
max-age: -1
contexts:
- 'languages:language_interface'
- 'user.node_grants:view'
- user.permissions
tags: { }
+1 -1
View File
@@ -1,6 +1,6 @@
uuid: 1065ce0b-5f94-47b7-9a99-a5707a234363
langcode: fr
status: true
status: false
dependencies:
module:
- user
+1 -1
View File
@@ -1,6 +1,6 @@
uuid: 17c2ef66-60c0-4bcc-85dc-fab3a19a839a
langcode: fr
status: true
status: false
dependencies:
module:
- user
+79 -83
View File
@@ -1,85 +1,81 @@
<article class="test-ouid" role="article">
<div>
<!-- THEME DEBUG -->
<!-- THEME HOOK: 'field' -->
<!-- FILE NAME SUGGESTIONS:
* field--node--field-sous-titre--evenement.html.twig
* field--node--field-sous-titre.html.twig
* field--node--evenement.html.twig
* field--field-sous-titre.html.twig
* field--string.html.twig
x field.html.twig
-->
<!-- BEGIN OUTPUT from 'core/modules/system/templates/field.html.twig' -->
<div class="rouge">Test</div>
<!-- END OUTPUT from 'core/modules/system/templates/field.html.twig' -->
<!-- THEME DEBUG -->
<!-- THEME HOOK: 'field' -->
<!-- FILE NAME SUGGESTIONS:
* field--node--field-date--evenement.html.twig
* field--node--field-date.html.twig
* field--node--evenement.html.twig
* field--field-date.html.twig
* field--datetime.html.twig
x field.html.twig
-->
<!-- BEGIN OUTPUT from 'core/modules/system/templates/field.html.twig' -->
<div>
<div>
<!-- THEME DEBUG -->
<!-- THEME HOOK: 'time' -->
<!-- BEGIN OUTPUT from 'core/modules/system/templates/time.html.twig' -->
<time datetime="2021-11-10T12:00:00Z">mer 10/11/2021 - 12:00</time>
<!-- END OUTPUT from 'core/modules/system/templates/time.html.twig' -->
</div>
<div>
<!-- THEME DEBUG -->
<!-- THEME HOOK: 'time' -->
<!-- BEGIN OUTPUT from 'core/modules/system/templates/time.html.twig' -->
<time datetime="2021-11-26T12:00:00Z">ven 26/11/2021 - 12:00</time>
<!-- END OUTPUT from 'core/modules/system/templates/time.html.twig' -->
</div>
</div>
<!-- END OUTPUT from 'core/modules/system/templates/field.html.twig' -->
<!-- THEME DEBUG -->
<!-- THEME HOOK: 'field' -->
<!-- FILE NAME SUGGESTIONS:
* field--node--body--evenement.html.twig
* field--node--body.html.twig
* field--node--evenement.html.twig
* field--body.html.twig
* field--text-with-summary.html.twig
x field.html.twig
-->
<!-- BEGIN OUTPUT from 'core/modules/system/templates/field.html.twig' -->
<div><p>bonjour,&nbsp;</p>
<p>ceci est un test de css et de capacité à&nbsp;&nbsp;</p>
<p>faire un site&nbsp; drupal !</p>
</div>
<!-- END OUTPUT from 'core/modules/system/templates/field.html.twig' -->
{#
/**
* @file
* Theme override for a field.
*
* To override output, copy the "field.html.twig" from the templates directory
* to your theme's directory and customize it, just like customizing other
* Drupal templates such as page.html.twig or node.html.twig.
*
* Instead of overriding the theming for all fields, you can also just override
* theming for a subset of fields using
* @link themeable Theme hook suggestions. @endlink For example,
* here are some theme hook suggestions that can be used for a field_foo field
* on an article node type:
* - field--node--field-foo--article.html.twig
* - field--node--field-foo.html.twig
* - field--node--article.html.twig
* - field--field-foo.html.twig
* - field--text-with-summary.html.twig
* - field.html.twig
*
* Available variables:
* - attributes: HTML attributes for the containing element.
* - label_hidden: Whether to show the field label or not.
* - title_attributes: HTML attributes for the title.
* - label: The label for the field.
* - multiple: TRUE if a field can contain multiple items.
* - items: List of all the field items. Each item contains:
* - attributes: List of HTML attributes for each item.
* - content: The field item's content.
* - entity_type: The entity type to which the field belongs.
* - field_name: The name of the field.
* - field_type: The type of the field.
* - label_display: The display settings for the label.
*
*
* @see template_preprocess_field()
*/
#}
{%
set classes = [
'field',
'field--name-' ~ field_name|clean_class,
'field--type-' ~ field_type|clean_class,
'field--label-' ~ label_display,
label_display == 'inline' ? 'clearfix',
]
%}
{%
set title_classes = [
'field__label',
label_display == 'visually_hidden' ? 'visually-hidden',
]
%}
{% if label_hidden %}
{% if multiple %}
<div{{ attributes.addClass(classes, 'field__items') }}>
{% for item in items %}
<div{{ item.attributes.addClass('field__item') }}>{{ item.content }}</div>
{% endfor %}
</div>
{% else %}
{% for item in items %}
<div{{ attributes.addClass(classes, 'field__item') }}>{{ item.content }}</div>
{% endfor %}
{% endif %}
{% else %}
<div{{ attributes.addClass(classes) }}>
<div{{ title_attributes.addClass(title_classes) }}>{{ label }}</div>
{% if multiple %}
<div class="field__items">
{% endif %}
{% for item in items %}
<div{{ item.attributes.addClass('field__item') }}>{{ item.content }}</div>
{% endfor %}
{% if multiple %}
</div>
{% endif %}
</div>
</article>
{% endif %}