Drupal 8.0.0 beta 12. More info: https://www.drupal.org/node/2514176
This commit is contained in:
commit
9921556621
13277 changed files with 1459781 additions and 0 deletions
|
@ -0,0 +1,7 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies: { }
|
||||
id: comment_forum
|
||||
label: Comment_forum
|
||||
target_entity_type_id: node
|
||||
description: 'Default comment field'
|
|
@ -0,0 +1,20 @@
|
|||
# Changes the default value of the promote base field on the forum node type.
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- node.type.forum
|
||||
id: node.forum.promote
|
||||
field_name: promote
|
||||
entity_type: node
|
||||
bundle: forum
|
||||
label: Promoted to front page
|
||||
description: ''
|
||||
required: false
|
||||
translatable: true
|
||||
default_value:
|
||||
-
|
||||
value: 0
|
||||
default_value_callback: ''
|
||||
settings: { }
|
||||
field_type: boolean
|
|
@ -0,0 +1,17 @@
|
|||
# Changes the label of the title base field on the forum node type.
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- node.type.forum
|
||||
id: node.forum.title
|
||||
field_name: title
|
||||
entity_type: node
|
||||
bundle: forum
|
||||
label: Subject
|
||||
required: true
|
||||
translatable: true
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings: { }
|
||||
field_type: string
|
|
@ -0,0 +1,31 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- comment.type.comment_forum
|
||||
- field.field.comment.comment_forum.comment_body
|
||||
module:
|
||||
- text
|
||||
id: comment.comment_forum.default
|
||||
targetEntityType: comment
|
||||
bundle: comment_forum
|
||||
mode: default
|
||||
content:
|
||||
author:
|
||||
weight: -2
|
||||
subject:
|
||||
type: string_textfield
|
||||
weight: 10
|
||||
settings:
|
||||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
comment_body:
|
||||
type: text_textarea
|
||||
weight: 11
|
||||
settings:
|
||||
rows: 5
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
hidden: { }
|
||||
third_party_settings: { }
|
|
@ -0,0 +1,69 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.field.node.forum.body
|
||||
- field.field.node.forum.comment_forum
|
||||
- field.field.node.forum.taxonomy_forums
|
||||
- node.type.forum
|
||||
module:
|
||||
- comment
|
||||
- entity_reference
|
||||
- text
|
||||
id: node.forum.default
|
||||
targetEntityType: node
|
||||
bundle: forum
|
||||
mode: default
|
||||
content:
|
||||
title:
|
||||
type: string_textfield
|
||||
weight: -5
|
||||
settings:
|
||||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
uid:
|
||||
type: entity_reference_autocomplete
|
||||
weight: 5
|
||||
settings:
|
||||
match_operator: CONTAINS
|
||||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
created:
|
||||
type: datetime_timestamp
|
||||
weight: 10
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
promote:
|
||||
type: boolean_checkbox
|
||||
settings:
|
||||
display_label: true
|
||||
weight: 15
|
||||
third_party_settings: { }
|
||||
sticky:
|
||||
type: boolean_checkbox
|
||||
settings:
|
||||
display_label: true
|
||||
weight: 16
|
||||
third_party_settings: { }
|
||||
comment_forum:
|
||||
type: comment_default
|
||||
weight: 20
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
taxonomy_forums:
|
||||
type: options_select
|
||||
weight: 26
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
body:
|
||||
type: text_textarea_with_summary
|
||||
weight: 27
|
||||
settings:
|
||||
rows: 9
|
||||
summary_rows: 3
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
hidden: { }
|
||||
third_party_settings: { }
|
|
@ -0,0 +1,26 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- taxonomy.vocabulary.forums
|
||||
module:
|
||||
- text
|
||||
id: taxonomy_term.forums.default
|
||||
targetEntityType: taxonomy_term
|
||||
bundle: forums
|
||||
mode: default
|
||||
content:
|
||||
name:
|
||||
type: string_textfield
|
||||
weight: -5
|
||||
settings:
|
||||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
description:
|
||||
type: text_textfield
|
||||
weight: 0
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
hidden: { }
|
||||
third_party_settings: { }
|
|
@ -0,0 +1,23 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- comment.type.comment_forum
|
||||
- field.field.comment.comment_forum.comment_body
|
||||
module:
|
||||
- text
|
||||
id: comment.comment_forum.default
|
||||
targetEntityType: comment
|
||||
bundle: comment_forum
|
||||
mode: default
|
||||
content:
|
||||
comment_body:
|
||||
label: hidden
|
||||
type: text_default
|
||||
weight: 0
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
links:
|
||||
weight: 100
|
||||
hidden: { }
|
||||
third_party_settings: { }
|
|
@ -0,0 +1,43 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.field.node.forum.body
|
||||
- field.field.node.forum.comment_forum
|
||||
- field.field.node.forum.taxonomy_forums
|
||||
- node.type.forum
|
||||
module:
|
||||
- comment
|
||||
- taxonomy
|
||||
- text
|
||||
- user
|
||||
id: node.forum.default
|
||||
targetEntityType: node
|
||||
bundle: forum
|
||||
mode: default
|
||||
content:
|
||||
taxonomy_forums:
|
||||
type: entity_reference_label
|
||||
weight: -1
|
||||
label: above
|
||||
settings:
|
||||
link: true
|
||||
third_party_settings: { }
|
||||
body:
|
||||
label: hidden
|
||||
type: text_default
|
||||
weight: 0
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
comment_forum:
|
||||
label: hidden
|
||||
type: comment_default
|
||||
weight: 20
|
||||
settings:
|
||||
pager_id: 0
|
||||
third_party_settings: { }
|
||||
links:
|
||||
weight: 100
|
||||
hidden:
|
||||
langcode: true
|
||||
third_party_settings: { }
|
|
@ -0,0 +1,38 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- core.entity_view_mode.node.teaser
|
||||
- field.field.node.forum.body
|
||||
- field.field.node.forum.comment_forum
|
||||
- field.field.node.forum.taxonomy_forums
|
||||
- node.type.forum
|
||||
module:
|
||||
- taxonomy
|
||||
- text
|
||||
- user
|
||||
id: node.forum.teaser
|
||||
targetEntityType: node
|
||||
bundle: forum
|
||||
mode: teaser
|
||||
content:
|
||||
taxonomy_forums:
|
||||
type: entity_reference_label
|
||||
weight: 10
|
||||
label: above
|
||||
settings:
|
||||
link: true
|
||||
third_party_settings: { }
|
||||
body:
|
||||
label: hidden
|
||||
type: text_summary_or_trimmed
|
||||
weight: 100
|
||||
settings:
|
||||
trim_length: 600
|
||||
third_party_settings: { }
|
||||
links:
|
||||
weight: 101
|
||||
hidden:
|
||||
langcode: true
|
||||
comment_forum: true
|
||||
third_party_settings: { }
|
|
@ -0,0 +1,20 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- taxonomy.vocabulary.forums
|
||||
module:
|
||||
- text
|
||||
id: taxonomy_term.forums.default
|
||||
targetEntityType: taxonomy_term
|
||||
bundle: forums
|
||||
mode: default
|
||||
content:
|
||||
description:
|
||||
type: text_default
|
||||
weight: 0
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
label: above
|
||||
hidden: { }
|
||||
third_party_settings: { }
|
|
@ -0,0 +1,21 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- comment.type.comment_forum
|
||||
- field.storage.comment.comment_body
|
||||
module:
|
||||
- text
|
||||
id: comment.comment_forum.comment_body
|
||||
field_name: comment_body
|
||||
entity_type: comment
|
||||
bundle: comment_forum
|
||||
label: Comment
|
||||
description: ''
|
||||
required: true
|
||||
translatable: true
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
field_type: text_long
|
|
@ -0,0 +1,22 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.node.body
|
||||
- node.type.forum
|
||||
module:
|
||||
- text
|
||||
id: node.forum.body
|
||||
field_name: body
|
||||
entity_type: node
|
||||
bundle: forum
|
||||
label: Body
|
||||
description: ''
|
||||
required: false
|
||||
translatable: true
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings:
|
||||
display_summary: true
|
||||
third_party_settings: { }
|
||||
field_type: text_with_summary
|
|
@ -0,0 +1,33 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.node.comment_forum
|
||||
- node.type.forum
|
||||
module:
|
||||
- comment
|
||||
id: node.forum.comment_forum
|
||||
field_name: comment_forum
|
||||
entity_type: node
|
||||
bundle: forum
|
||||
label: Comments
|
||||
description: ''
|
||||
required: true
|
||||
translatable: true
|
||||
default_value:
|
||||
-
|
||||
status: 2
|
||||
cid: 0
|
||||
last_comment_name: null
|
||||
last_comment_timestamp: 0
|
||||
last_comment_uid: 0
|
||||
comment_count: 0
|
||||
default_value_callback: ''
|
||||
settings:
|
||||
default_mode: 0
|
||||
per_page: 50
|
||||
form_location: true
|
||||
anonymous: 0
|
||||
preview: 1
|
||||
third_party_settings: { }
|
||||
field_type: comment
|
|
@ -0,0 +1,28 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.node.taxonomy_forums
|
||||
- node.type.forum
|
||||
module:
|
||||
- taxonomy
|
||||
id: node.forum.taxonomy_forums
|
||||
field_name: taxonomy_forums
|
||||
entity_type: node
|
||||
bundle: forum
|
||||
label: Forums
|
||||
description: ''
|
||||
required: true
|
||||
translatable: true
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings:
|
||||
handler: default
|
||||
handler_settings:
|
||||
target_bundles:
|
||||
forums: forums
|
||||
sort:
|
||||
field: _none
|
||||
auto_create: true
|
||||
third_party_settings: { }
|
||||
field_type: entity_reference
|
|
@ -0,0 +1,23 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.taxonomy_term.forum_container
|
||||
- taxonomy.vocabulary.forums
|
||||
id: taxonomy_term.forums.forum_container
|
||||
field_name: forum_container
|
||||
entity_type: taxonomy_term
|
||||
bundle: forums
|
||||
label: Container
|
||||
description: ''
|
||||
required: true
|
||||
translatable: true
|
||||
default_value:
|
||||
-
|
||||
value: 0
|
||||
default_value_callback: ''
|
||||
settings:
|
||||
on_label: Yes
|
||||
off_label: No
|
||||
third_party_settings: { }
|
||||
field_type: boolean
|
|
@ -0,0 +1,18 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- comment
|
||||
- node
|
||||
id: node.comment_forum
|
||||
field_name: comment_forum
|
||||
entity_type: node
|
||||
type: comment
|
||||
settings:
|
||||
comment_type: comment_forum
|
||||
module: comment
|
||||
locked: false
|
||||
cardinality: 1
|
||||
translatable: true
|
||||
indexes: { }
|
||||
persist_with_no_fields: false
|
|
@ -0,0 +1,18 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- node
|
||||
- taxonomy
|
||||
id: node.taxonomy_forums
|
||||
field_name: taxonomy_forums
|
||||
entity_type: node
|
||||
type: entity_reference
|
||||
settings:
|
||||
target_type: taxonomy_term
|
||||
module: taxonomy
|
||||
locked: false
|
||||
cardinality: 1
|
||||
translatable: true
|
||||
indexes: { }
|
||||
persist_with_no_fields: false
|
|
@ -0,0 +1,16 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- taxonomy
|
||||
id: taxonomy_term.forum_container
|
||||
field_name: forum_container
|
||||
entity_type: taxonomy_term
|
||||
type: boolean
|
||||
settings: { }
|
||||
module: core
|
||||
locked: true
|
||||
cardinality: 1
|
||||
translatable: false
|
||||
indexes: { }
|
||||
persist_with_no_fields: false
|
10
core/modules/forum/config/install/forum.settings.yml
Normal file
10
core/modules/forum/config/install/forum.settings.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
block:
|
||||
active:
|
||||
limit: 5
|
||||
new:
|
||||
limit: 5
|
||||
topics:
|
||||
hot_threshold: 15
|
||||
order: 1
|
||||
page_limit: 25
|
||||
vocabulary: forums
|
15
core/modules/forum/config/install/node.type.forum.yml
Normal file
15
core/modules/forum/config/install/node.type.forum.yml
Normal file
|
@ -0,0 +1,15 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- forum
|
||||
enforced:
|
||||
module:
|
||||
- forum
|
||||
name: 'Forum topic'
|
||||
type: forum
|
||||
description: 'A <em>forum topic</em> starts a new discussion thread within a forum.'
|
||||
help: ''
|
||||
new_revision: false
|
||||
preview_mode: 1
|
||||
display_submitted: true
|
|
@ -0,0 +1,14 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- forum
|
||||
enforced:
|
||||
module:
|
||||
- forum
|
||||
name: Forums
|
||||
vid: forums
|
||||
description: 'Forum navigation vocabulary'
|
||||
hierarchy: 1
|
||||
weight: -10
|
||||
third_party_settings: { }
|
Reference in a new issue