Skip to content

Commit

Permalink
Feature/updates (#7)
Browse files Browse the repository at this point in the history
* Adds Posts view

* Featured image field to use Image media entity

* Adds new fields

* Updates Page and Post Forms and Displays

* Configured Home page Metatag default

* Grants permissions to Anonymous and Content Editor
  • Loading branch information
thejimbirch authored Feb 19, 2024
1 parent 01f904c commit f584f58
Show file tree
Hide file tree
Showing 16 changed files with 716 additions and 150 deletions.
25 changes: 25 additions & 0 deletions config/core.entity_form_display.node.sa_page.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ dependencies:
- field.field.node.sa_page.sa_components
- field.field.node.sa_page.sa_description
- field.field.node.sa_page.sa_featured_image
- field.field.node.sa_page.sa_header_position
- field.field.node.sa_page.sa_hide_header
- field.field.node.sa_page.sa_overlay
- field.field.node.sa_page.sa_robots
- field.field.node.sa_page.sa_seo_description
- field.field.node.sa_page.sa_seo_image
Expand Down Expand Up @@ -41,6 +44,9 @@ third_party_settings:
children:
- sa_description
- sa_featured_image
- sa_overlay
- sa_header_position
- sa_hide_header
label: Summary
region: content
parent_name: group_administration
Expand Down Expand Up @@ -158,6 +164,25 @@ content:
third_party_settings:
media_library_edit:
show_edit: '1'
sa_header_position:
type: options_select
weight: 6
region: content
settings: { }
third_party_settings: { }
sa_hide_header:
type: boolean_checkbox
weight: 7
region: content
settings:
display_label: true
third_party_settings: { }
sa_overlay:
type: options_select
weight: 5
region: content
settings: { }
third_party_settings: { }
sa_robots:
type: string_textfield
weight: 5
Expand Down
44 changes: 30 additions & 14 deletions config/core.entity_form_display.node.sa_post.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ langcode: en
status: true
dependencies:
config:
- field.field.node.sa_post.sa_body
- field.field.node.sa_post.sa_author
- field.field.node.sa_post.sa_author_url
- field.field.node.sa_post.sa_body
- field.field.node.sa_post.sa_category
- field.field.node.sa_post.sa_description
- field.field.node.sa_post.sa_external_source
- field.field.node.sa_post.sa_featured_image
- field.field.node.sa_post.sa_header_position
- field.field.node.sa_post.sa_overlay
- field.field.node.sa_post.sa_related_posts
- field.field.node.sa_post.sa_robots
- field.field.node.sa_post.sa_seo_description
Expand Down Expand Up @@ -51,6 +53,8 @@ third_party_settings:
children:
- sa_description
- sa_featured_image
- sa_overlay
- sa_header_position
- sa_author
- sa_author_url
- sa_external_source
Expand Down Expand Up @@ -121,16 +125,6 @@ targetEntityType: node
bundle: sa_post
mode: default
content:
sa_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: 5
Expand Down Expand Up @@ -163,20 +157,30 @@ content:
third_party_settings: { }
sa_author:
type: string_textfield
weight: 34
weight: 36
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
sa_author_url:
type: link_default
weight: 35
weight: 37
region: content
settings:
placeholder_url: ''
placeholder_title: ''
third_party_settings: { }
sa_body:
type: text_textarea_with_summary
weight: 2
region: content
settings:
rows: 9
summary_rows: 3
placeholder: ''
show_summary: false
third_party_settings: { }
sa_category:
type: options_buttons
weight: 7
Expand All @@ -193,7 +197,7 @@ content:
third_party_settings: { }
sa_external_source:
type: link_default
weight: 36
weight: 38
region: content
settings:
placeholder_url: ''
Expand All @@ -208,6 +212,18 @@ content:
third_party_settings:
media_library_edit:
show_edit: '1'
sa_header_position:
type: options_select
weight: 35
region: content
settings: { }
third_party_settings: { }
sa_overlay:
type: options_select
weight: 34
region: content
settings: { }
third_party_settings: { }
sa_related_posts:
type: inline_entity_form_complex
weight: 8
Expand Down
89 changes: 48 additions & 41 deletions config/core.entity_view_display.node.sa_page.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ dependencies:
- field.field.node.sa_page.sa_components
- field.field.node.sa_page.sa_description
- field.field.node.sa_page.sa_featured_image
- field.field.node.sa_page.sa_header_position
- field.field.node.sa_page.sa_hide_header
- field.field.node.sa_page.sa_overlay
- field.field.node.sa_page.sa_robots
- field.field.node.sa_page.sa_seo_description
- field.field.node.sa_page.sa_seo_image
Expand All @@ -14,44 +17,8 @@ dependencies:
- ds
- entity_reference_revisions
- nomarkup
- options
- user
third_party_settings:
ds:
layout:
id: pattern_page
library: null
disable_css: false
entity_classes: all_classes
settings:
pattern:
field_templates: default
variant: default
regions:
image:
- sa_featured_image
header:
- node_title
content:
- sa_description
- sa_components
fields:
node_title:
plugin_id: node_title
weight: 1
label: hidden
formatter: default
settings:
link: false
'link class': ''
link_target: ''
wrapper: h1
class: ''
ft:
id: default
settings:
lb: ''
lb-col: false
classes: { }
id: node.sa_page.default
targetEntityType: node
bundle: sa_page
Expand All @@ -76,14 +43,18 @@ content:
lb: ''
lb-col: false
classes: { }
weight: 3
weight: 4
region: content
sa_description:
type: basic_string
label: hidden
settings: { }
third_party_settings: { }
weight: 2
third_party_settings:
nomarkup:
enabled: true
separator: '|'
referenced_entity: ''
weight: 3
region: content
sa_featured_image:
type: entity_reference_entity_view
Expand All @@ -97,7 +68,43 @@ content:
separator: '|'
referenced_entity: '1'
weight: 0
region: image
region: content
sa_header_position:
type: list_key
label: hidden
settings: { }
third_party_settings:
nomarkup:
enabled: true
separator: '|'
referenced_entity: ''
weight: 1
region: content
sa_hide_header:
type: boolean
label: hidden
settings:
format: boolean
format_custom_false: ''
format_custom_true: ''
third_party_settings:
nomarkup:
enabled: false
separator: '|'
referenced_entity: ''
weight: 5
region: content
sa_overlay:
type: list_key
label: hidden
settings: { }
third_party_settings:
nomarkup:
enabled: true
separator: '|'
referenced_entity: ''
weight: 2
region: content
hidden:
links: true
published_at: true
Expand Down
40 changes: 23 additions & 17 deletions config/core.entity_view_display.node.sa_page.teaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ dependencies:
- field.field.node.sa_page.sa_components
- field.field.node.sa_page.sa_description
- field.field.node.sa_page.sa_featured_image
- field.field.node.sa_page.sa_header_position
- field.field.node.sa_page.sa_hide_header
- field.field.node.sa_page.sa_overlay
- field.field.node.sa_page.sa_robots
- field.field.node.sa_page.sa_seo_description
- field.field.node.sa_page.sa_seo_image
Expand All @@ -27,12 +30,12 @@ third_party_settings:
field_templates: default
variant: default
settings:
image_position: ""
image_position_token: ""
image_position: ''
image_position_token: ''
image_col_classes: col-md-4
image_col_classes_token: ""
image_col_classes_token: ''
content_col_classes: col-md-8
content_col_classes_token: ""
content_col_classes_token: ''
regions:
image:
- sa_featured_image
Expand All @@ -48,16 +51,16 @@ third_party_settings:
formatter: default
settings:
link: true
"link class": ""
link_target: ""
'link class': ''
link_target: ''
wrapper: h3
class: ""
class: ''
ft:
id: default
settings:
lb: ""
lb: ''
lb-col: false
classes: {}
classes: { }
id: node.sa_page.teaser
targetEntityType: node
bundle: sa_page
Expand All @@ -66,38 +69,41 @@ content:
sa_description:
type: basic_string
label: hidden
settings: {}
settings: { }
third_party_settings:
nomarkup:
enabled: true
separator: "|"
referenced_entity: ""
separator: '|'
referenced_entity: ''
weight: 2
region: content
sa_featured_image:
type: entity_reference_entity_view
label: hidden
settings:
view_mode: "sa_16_9"
view_mode: sa_16_9
link: false
third_party_settings:
nomarkup:
enabled: true
separator: "|"
referenced_entity: "1"
separator: '|'
referenced_entity: '1'
ds:
ft:
id: default
settings:
lb: ""
lb: ''
lb-col: false
classes: {}
classes: { }
weight: 0
region: image
hidden:
links: true
published_at: true
sa_components: true
sa_header_position: true
sa_hide_header: true
sa_overlay: true
sa_robots: true
sa_seo_description: true
sa_seo_image: true
Expand Down
Loading

0 comments on commit f584f58

Please sign in to comment.