Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Commit

Permalink
Merge pull request #32 from Pronovix/issue/8147
Browse files Browse the repository at this point in the history
add Recent Recipes block
  • Loading branch information
mariaburany authored Apr 9, 2020
2 parents 62effea + 7d47140 commit 867b46f
Show file tree
Hide file tree
Showing 10 changed files with 213 additions and 713 deletions.
22 changes: 0 additions & 22 deletions config/sync/block.block.recipe_theme_powered.yml

This file was deleted.

22 changes: 18 additions & 4 deletions config/sync/core.entity_view_display.node.landing_page.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ dependencies:
- field.field.node.landing_page.body
- field.field.node.landing_page.field_image_hero
- node.type.landing_page
- views.view.recent_recipes
module:
- image
- layout_builder
- layout_discovery
- text
- user
- views
third_party_settings:
layout_builder:
allow_custom: false
Expand Down Expand Up @@ -68,11 +70,23 @@ third_party_settings:
weight: 0
third_party_settings: { }
-
layout_id: layout_threecol_section
layout_id: layout_onecol
layout_settings:
label: 'Recent recipes'
column_widths: 33-34-33
components: { }
label: Recent
components:
ad699910-edc1-4aee-b502-229876bd735a:
uuid: ad699910-edc1-4aee-b502-229876bd735a
region: content
configuration:
id: 'views_block:recent_recipes-block_1'
label: ''
provider: views
label_display: visible
views_label: ''
items_per_page: none
context_mapping: { }
additional: { }
weight: 0
third_party_settings: { }
-
layout_id: layout_threecol_section
Expand Down
10 changes: 10 additions & 0 deletions config/sync/recipe_theme.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
features:
node_user_picture: true
comment_user_picture: true
comment_user_verification: true
favicon: true
logo:
use_default: true
favicon:
use_default: true
mimetype: image/png
4 changes: 2 additions & 2 deletions config/sync/system.rss.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
channel:
description: ''
items:
limit: 10
view_mode: rss
limit: 3
view_mode: teaser
langcode: en
_core:
default_config_hash: TlH7NNk46phfxu1mSUfwg1C0YqaGsUCeD4l9JQnQlDU
4 changes: 2 additions & 2 deletions config/sync/system.site.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
uuid: bb8c67fd-af3e-4a6e-a462-d4c589114477
name: Site-Install
name: 'Recipe Magazine'
mail: [email protected]
slogan: ''
slogan: 'Your Dream Dish'
page:
403: ''
404: ''
Expand Down
1 change: 1 addition & 0 deletions config/sync/views.view.landing_page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ display:
relationship: none
view_mode: rss
display_extenders: { }
enabled: false
cache_metadata:
contexts:
- 'languages:language_interface'
Expand Down
179 changes: 179 additions & 0 deletions config/sync/views.view.recent_recipes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
uuid: e1ec86ee-8f88-4197-8a53-e907999fa719
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.node.teaser
- node.type.article
module:
- node
- user
id: recent_recipes
label: 'Recent Recipes'
module: views
description: ''
tag: ''
base_table: node_field_data
base_field: nid
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: some
options:
items_per_page: 3
offset: 0
style:
type: grid
row:
type: 'entity:node'
options:
view_mode: teaser
fields:
title:
id: title
table: node_field_data
field: title
entity_type: node
entity_field: title
label: ''
alter:
alter_text: false
make_link: false
absolute: false
trim: false
word_boundary: false
ellipsis: false
strip_tags: false
html: false
hide_empty: false
empty_zero: false
settings:
link_to_entity: true
plugin_id: field
relationship: none
group_type: group
admin_label: ''
exclude: 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_alter_empty: true
click_sort_column: value
type: string
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
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:
article: article
entity_type: node
entity_field: type
plugin_id: bundle
expose:
operator_limit_selection: false
operator_list: { }
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
title: 'Recent Recipes'
header: { }
footer: { }
empty: { }
relationships: { }
arguments: { }
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- 'user.node_grants:view'
- user.permissions
tags: { }
block_1:
display_plugin: block
id: block_1
display_title: Block
position: 1
display_options:
display_extenders: { }
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- 'user.node_grants:view'
- user.permissions
tags: { }
Binary file added web/themes/custom/recipe_theme/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 867b46f

Please sign in to comment.