Skip to content
Snippets Groups Projects
Commit beeb380d authored by Tasneem Natshah's avatar Tasneem Natshah
Browse files

Issue #3340959: Initialize [WebBlog] module

parent f08da86c
No related branches found
No related tags found
No related merge requests found
Showing
with 84 additions and 79 deletions
# Web Blog
### Website Blogs Content.
Create Blog content type and add views for the home page and Blog page with Drupal.
* Create **Web Blog** Content Type
* Create Web Blogs view
** Web Blogs List Block
** Featured Web Blogs Block
\ No newline at end of file
# WebBlog
###Website Blogs Content.
Create Blog content type and add views for the home page and Blog page with Drupal.
* Create [Blog] Content Type
* Create [Blog] Webpage
* Create [Blog] Views
** Blogs List Block
** Featured Blogs Block
* [Entity Queue] (https://www.drupal.org/project/entityqueue) : @stable @enabled
\ No newline at end of file
{
"name": "drupal/webblog",
"description": "Create Blog content type, and make views to display content.",
"description": "Create Web Blog content type, and make views to display content.",
"type": "drupal-module",
"license": "GPL-1.0-or-later",
"minimum-stability": "dev",
......@@ -23,6 +23,7 @@
},
"require": {
"drupal/core": "~10.0",
"drupal/webpage": "~1.0"
"drupal/manage_display": "~2.0",
"drupal/webdev": "10.0.x-dev"
}
}
......@@ -2,9 +2,9 @@ langcode: en
status: true
dependencies:
config:
- field.field.node.blog.body
- field.field.node.blog.field_media
- node.type.blog
- field.field.node.webblog.body
- field.field.node.webblog.field_media
- node.type.webblog
module:
- content_moderation
- field_layout
......@@ -17,9 +17,9 @@ third_party_settings:
id: layout_onecol
settings:
label: ''
id: node.blog.default
id: node.webblog.default
targetEntityType: node
bundle: blog
bundle: webblog
mode: default
content:
body:
......
......@@ -2,13 +2,13 @@ langcode: en
status: true
dependencies:
config:
- field.field.node.blog.body
- field.field.node.blog.field_media
- node.type.blog
- field.field.node.webblog.body
- field.field.node.webblog.field_media
- node.type.webblog
module:
- layout_builder
- layout_discovery
- layout_manage_display
- manage_display
- text
third_party_settings:
layout_builder:
......@@ -24,7 +24,7 @@ third_party_settings:
uuid: 49490fc6-d003-44d3-95ae-5ad3ecea4bc3
region: content
configuration:
id: 'field_block:node:blog:body'
id: 'field_block:node:webblog:body'
label_display: '0'
context_mapping:
entity: layout_builder.entity
......@@ -39,7 +39,7 @@ third_party_settings:
uuid: 6a57bada-3f48-4295-890b-21f468043893
region: content
configuration:
id: 'field_block:node:blog:field_media'
id: 'field_block:node:webblog:field_media'
label: Media
label_display: '0'
provider: layout_builder
......@@ -58,7 +58,7 @@ third_party_settings:
uuid: 03be81ed-370c-4344-857e-7ff101fb919c
region: content
configuration:
id: 'field_block:node:blog:title'
id: 'field_block:node:webblog:title'
label: Title
label_display: '0'
provider: layout_builder
......@@ -78,7 +78,7 @@ third_party_settings:
uuid: d3a2e170-5fc1-42ad-b2a0-ad1062577e4e
region: content
configuration:
id: 'field_block:node:blog:created'
id: 'field_block:node:webblog:created'
label: 'Authored on'
label_display: '0'
provider: layout_builder
......@@ -96,9 +96,9 @@ third_party_settings:
weight: -9
additional: { }
third_party_settings: { }
id: node.blog.default
id: node.webblog.default
targetEntityType: node
bundle: blog
bundle: webblog
mode: default
content:
body:
......
......@@ -3,13 +3,13 @@ status: true
dependencies:
config:
- core.entity_view_mode.node.full
- field.field.node.blog.body
- field.field.node.blog.field_media
- node.type.blog
- field.field.node.webblog.body
- field.field.node.webblog.field_media
- node.type.webblog
module:
- layout_builder
- layout_discovery
- layout_manage_display
- manage_display
- text
third_party_settings:
layout_builder:
......@@ -25,7 +25,7 @@ third_party_settings:
uuid: b69d2e01-6379-4789-be20-8b6ef5b32eee
region: content
configuration:
id: 'field_block:node:blog:title'
id: 'field_block:node:webblog:title'
label: Title
label_display: '0'
provider: layout_builder
......@@ -45,7 +45,7 @@ third_party_settings:
uuid: 732218fa-56b5-434a-a792-95b565d27318
region: content
configuration:
id: 'field_block:node:blog:body'
id: 'field_block:node:webblog:body'
label_display: '0'
context_mapping:
entity: layout_builder.entity
......@@ -60,7 +60,7 @@ third_party_settings:
uuid: 1d35929f-4255-4a4a-a0de-6ac258c214cf
region: content
configuration:
id: 'field_block:node:blog:field_media'
id: 'field_block:node:webblog:field_media'
label: Media
label_display: '0'
provider: layout_builder
......@@ -79,7 +79,7 @@ third_party_settings:
uuid: 5ee63587-52de-4a96-b7ab-9aaa8145bcb9
region: content
configuration:
id: 'field_block:node:blog:created'
id: 'field_block:node:webblog:created'
label: 'Authored on'
label_display: '0'
provider: layout_builder
......@@ -97,9 +97,9 @@ third_party_settings:
weight: -9
additional: { }
third_party_settings: { }
id: node.blog.full
id: node.webblog.full
targetEntityType: node
bundle: blog
bundle: webblog
mode: full
content:
body:
......
......@@ -3,13 +3,13 @@ status: true
dependencies:
config:
- core.entity_view_mode.node.teaser
- field.field.node.blog.body
- field.field.node.blog.field_media
- node.type.blog
- field.field.node.webblog.body
- field.field.node.webblog.field_media
- node.type.webblog
module:
- layout_builder
- layout_discovery
- layout_manage_display
- manage_display
- text
third_party_settings:
layout_builder:
......@@ -25,7 +25,7 @@ third_party_settings:
uuid: 87df4573-6452-45ba-b26c-541ca4dfdad5
region: content
configuration:
id: 'field_block:node:blog:title'
id: 'field_block:node:webblog:title'
label: Title
label_display: '0'
provider: layout_builder
......@@ -45,7 +45,7 @@ third_party_settings:
uuid: 89212bb3-35c2-4198-9e4e-82c57996567a
region: content
configuration:
id: 'field_block:node:blog:body'
id: 'field_block:node:webblog:body'
label: Body
label_display: '0'
provider: layout_builder
......@@ -78,7 +78,7 @@ third_party_settings:
uuid: bbe72d89-27c0-4514-9c99-0f839cc6ea42
region: content
configuration:
id: 'field_block:node:blog:created'
id: 'field_block:node:webblog:created'
label: 'Authored on'
label_display: '0'
provider: layout_builder
......@@ -99,7 +99,7 @@ third_party_settings:
uuid: 35235556-6c61-4796-8a7d-f63615a8a79e
region: content
configuration:
id: 'field_block:node:blog:field_media'
id: 'field_block:node:webblog:field_media'
label: Media
label_display: '0'
provider: layout_builder
......@@ -115,9 +115,9 @@ third_party_settings:
weight: -9
additional: { }
third_party_settings: { }
id: node.blog.teaser
id: node.webblog.teaser
targetEntityType: node
bundle: blog
bundle: webblog
mode: teaser
content:
body:
......
_core:
row_limit: 1000
......@@ -3,8 +3,8 @@ status: true
dependencies:
module:
- node
id: featured_blogs
label: 'Featured Blogs'
id: featured_webblogs
label: 'Featured Web Blogs'
handler: simple
handler_configuration: { }
entity_settings:
......@@ -12,7 +12,7 @@ entity_settings:
handler: 'default:node'
handler_settings:
target_bundles:
blog: blog
blog: webblog
sort:
field: _none
direction: ASC
......
......@@ -3,13 +3,13 @@ status: true
dependencies:
config:
- field.storage.node.body
- node.type.blog
- node.type.webblog
module:
- text
id: node.blog.body
id: node.webblog.body
field_name: body
entity_type: node
bundle: blog
bundle: webblog
label: Body
description: ''
required: false
......
......@@ -4,11 +4,11 @@ dependencies:
config:
- field.storage.node.field_media
- media.type.image
- node.type.blog
id: node.blog.field_media
- node.type.webblog
id: node.webblog.field_media
field_name: field_media
entity_type: node
bundle: blog
bundle: webblog
label: Media
description: ''
required: true
......
......@@ -8,8 +8,8 @@ third_party_settings:
available_menus:
- main
parent: 'main:'
name: Blog
type: blog
name: webBlog
type: webblog
description: ''
help: ''
new_revision: true
......
......@@ -3,14 +3,14 @@ status: true
dependencies:
config:
- core.entity_view_mode.node.teaser
- entityqueue.entity_queue.featured_blogs
- node.type.blog
- entityqueue.entity_queue.featured_webblogs
- node.type.webblog
module:
- entityqueue
- node
- user
id: blogs
label: Blogs
id: webblogs
label: Web Blogs
module: views
description: ''
tag: ''
......@@ -23,7 +23,7 @@ display:
display_plugin: default
position: 0
display_options:
title: Blogs
title: Web Blogs
fields:
title:
id: title
......@@ -149,7 +149,7 @@ display:
entity_field: type
plugin_id: bundle
value:
blog: blog
webblog: webblog
style:
type: grid_responsive
options:
......@@ -183,9 +183,9 @@ display:
- 'user.node_grants:view'
- user.permissions
tags: { }
block_blogs_list:
id: block_blogs_list
display_title: 'Blogs List Block'
block_webblogs_list:
id: block_webblogs_list
display_title: 'Web Blogs List Block'
display_plugin: block
position: 1
display_options:
......@@ -200,13 +200,13 @@ display:
- 'user.node_grants:view'
- user.permissions
tags: { }
block_featured_blogs:
id: block_featured_blogs
display_title: 'Featured Blogs Block'
block_featured_webblogs:
id: block_featured_webblogs
display_title: 'Featured Web Blogs Block'
display_plugin: block
position: 1
display_options:
title: Blogs
title: Web Blogs
pager:
type: some
options:
......@@ -243,7 +243,7 @@ display:
entity_type: node
plugin_id: entity_queue
required: true
limit_queue: featured_blogs
limit_queue: featured_webblogs
display_description: ''
display_extenders: { }
cache_metadata:
......@@ -254,6 +254,6 @@ display:
- 'user.node_grants:view'
- user.permissions
tags:
- 'config:entityqueue.entity_queue.featured_blogs'
- 'config:entityqueue.entity_queue.featured_webblogs'
- entity_field_info
- views_data
name: Web Blog
description: 'Create Blog content type, and make views to display content.'
description: 'Create Web Blog content type, and make views to display content.'
type: module
core_version_requirement: ~10.0
dependencies:
- webpage:webpage
- media:media
\ No newline at end of file
- drupal:node
- drupal:menu_ui
- drupal:path
- drupal:text
- drupal:content_moderation
- drupal:field_layout
- drupal:layout_discovery
- manage_display:manage_display
- entityqueue:entityqueue
- webassets:webassets
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment