Skip to content

Commit

Permalink
1145: Add content type project
Browse files Browse the repository at this point in the history
  • Loading branch information
yepzdk committed Apr 10, 2024
1 parent 52afecc commit 52961a8
Show file tree
Hide file tree
Showing 49 changed files with 1,313 additions and 57 deletions.
2 changes: 1 addition & 1 deletion config/sync/block.block.hoeringsportal_branding.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ _core:
id: hoeringsportal_branding
theme: hoeringsportal
region: header
weight: -3
weight: -2
provider: null
plugin: system_branding_block
settings:
Expand Down
2 changes: 1 addition & 1 deletion config/sync/block.block.hoeringsportal_messages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ _core:
id: hoeringsportal_messages
theme: hoeringsportal
region: header
weight: -1
weight: -3
provider: null
plugin: system_messages_block
settings:
Expand Down
2 changes: 1 addition & 1 deletion config/sync/block.block.primaernavigation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependencies:
id: primaernavigation
theme: hoeringsportal
region: header
weight: -2
weight: -1
provider: null
plugin: 'system_menu_block:main'
settings:
Expand Down
8 changes: 8 additions & 0 deletions config/sync/block_content.type.aside_contact_info.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
uuid: b76efb53-f492-4eff-9b4f-894978914ed2
langcode: da
status: true
dependencies: { }
id: aside_contact_info
label: 'Aside contact info'
revision: 0
description: 'Used to show contact info on a page'
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
uuid: 16de0d95-93de-4a01-9242-3e8f4c17d76f
langcode: da
status: true
dependencies:
config:
- block_content.type.aside_contact_info
- field.field.block_content.aside_contact_info.body
- field.field.block_content.aside_contact_info.field_department
- field.field.block_content.aside_contact_info.field_email
- field.field.block_content.aside_contact_info.field_phone_number
- field.field.block_content.aside_contact_info.field_title
module:
- text
id: block_content.aside_contact_info.default
targetEntityType: block_content
bundle: aside_contact_info
mode: default
content:
body:
type: text_textarea_with_summary
weight: 4
region: content
settings:
rows: 9
summary_rows: 3
placeholder: ''
show_summary: false
third_party_settings: { }
field_department:
type: string_textfield
weight: 2
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
field_email:
type: email_default
weight: 6
region: content
settings:
placeholder: ''
size: 60
third_party_settings: { }
field_phone_number:
type: number
weight: 5
region: content
settings:
placeholder: ''
third_party_settings: { }
field_title:
type: string_textfield
weight: 3
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
info:
type: string_textfield
weight: 1
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
langcode:
type: language_select
weight: 0
region: content
settings:
include_locked: true
third_party_settings: { }
hidden: { }
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
uuid: ad0bc723-13f0-421f-8b13-0a8741900357
langcode: da
status: true
dependencies:
config:
- entity_browser.browser.itk_image_browser
- field.field.node.project_main_page.body
- field.field.node.project_main_page.field_aside_block
- field.field.node.project_main_page.field_content_sections
- field.field.node.project_main_page.field_project_image
- field.field.node.project_main_page.field_short_description
- node.type.project_main_page
module:
- allowed_formats
- entity_browser
- maxlength
- paragraphs
- path
- publication_date
- text
id: node.project_main_page.default
targetEntityType: node
bundle: project_main_page
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:
allowed_formats:
hide_help: '1'
hide_guidelines: '1'
maxlength:
maxlength_js: null
maxlength_js_label: 'Content limited to @limit characters, remaining: <strong>@remaining</strong>'
maxlength_js_summary: null
maxlength_js_label_summary: 'Content limited to @limit characters, remaining: <strong>@remaining</strong>'
maxlength_js_enforce: false
created:
type: datetime_timestamp
weight: 8
region: content
settings: { }
third_party_settings: { }
field_aside_block:
type: entity_reference_autocomplete
weight: 4
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 100
placeholder: ''
third_party_settings: { }
field_content_sections:
type: paragraphs
weight: 5
region: content
settings:
title: Paragraph
title_plural: Paragraphs
edit_mode: open
closed_mode: summary
autocollapse: none
closed_mode_threshold: 0
add_mode: dropdown
form_display_mode: default
default_paragraph_type: ''
features:
collapse_edit_all: collapse_edit_all
duplicate: duplicate
third_party_settings: { }
field_project_image:
type: entity_browser_entity_reference
weight: 2
region: content
settings:
entity_browser: itk_image_browser
field_widget_display: rendered_entity
field_widget_edit: false
field_widget_remove: true
field_widget_replace: true
open: true
field_widget_display_settings:
view_mode: node_form_display
selection_mode: selection_append
third_party_settings: { }
field_short_description:
type: text_textarea
weight: 1
region: content
settings:
rows: 5
placeholder: ''
third_party_settings:
allowed_formats:
hide_help: '1'
hide_guidelines: '1'
maxlength:
maxlength_js: null
maxlength_js_label: 'Content limited to @limit characters, remaining: <strong>@remaining</strong>'
maxlength_js_enforce: false
langcode:
type: language_select
weight: 6
region: content
settings:
include_locked: true
third_party_settings: { }
path:
type: path
weight: 12
region: content
settings: { }
third_party_settings: { }
promote:
type: boolean_checkbox
weight: 10
region: content
settings:
display_label: true
third_party_settings: { }
published_at:
type: publication_date_timestamp
weight: 9
region: content
settings: { }
third_party_settings: { }
status:
type: boolean_checkbox
weight: 14
region: content
settings:
display_label: true
third_party_settings: { }
sticky:
type: boolean_checkbox
weight: 11
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: 7
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
url_redirects:
weight: 13
region: content
settings: { }
third_party_settings: { }
hidden: { }
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
uuid: 30cbd187-b0c8-4814-8661-2a61e3f18429
langcode: da
status: true
dependencies:
config:
- block_content.type.aside_contact_info
- field.field.block_content.aside_contact_info.body
- field.field.block_content.aside_contact_info.field_department
- field.field.block_content.aside_contact_info.field_email
- field.field.block_content.aside_contact_info.field_phone_number
- field.field.block_content.aside_contact_info.field_title
module:
- text
id: block_content.aside_contact_info.default
targetEntityType: block_content
bundle: aside_contact_info
mode: default
content:
body:
type: text_default
label: visually_hidden
settings: { }
third_party_settings: { }
weight: 2
region: content
field_department:
type: string
label: visually_hidden
settings:
link_to_entity: false
third_party_settings: { }
weight: 0
region: content
field_email:
type: basic_string
label: visually_hidden
settings: { }
third_party_settings: { }
weight: 4
region: content
field_phone_number:
type: number_integer
label: visually_hidden
settings:
thousand_separator: ''
prefix_suffix: true
third_party_settings: { }
weight: 3
region: content
field_title:
type: string
label: visually_hidden
settings:
link_to_entity: false
third_party_settings: { }
weight: 1
region: content
hidden:
langcode: true
Loading

0 comments on commit 52961a8

Please sign in to comment.