Skip to content

Commit

Permalink
Merge pull request #110 from argiepiano/1.x-2.x-issue-102-alt
Browse files Browse the repository at this point in the history
Issue #102. Provide demo group and group content.
  • Loading branch information
argiepiano authored May 24, 2022
2 parents c569dec + 2cf772c commit 837e811
Show file tree
Hide file tree
Showing 13 changed files with 1,078 additions and 0 deletions.
26 changes: 26 additions & 0 deletions og_demo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Organic Groups Demo Content

This is an optional module that will provide some default content to help you get
started or to help you evaluate Organic Groups.

If you enable this module and decide you do not want to use it, you will need to
delete the configuration and content manually.

This modules does the following:

1. Adds a content type called Group and adds the following OG fields:
- Group (allows this content type to be used a group for OG)
- Group Visibility (allows visibility configuration for each group)
2. Adds a content type called Group Content and adds the following OG field:
- Group Audience (allows site admin to assign content of this type to
specific groups)
3. Adds three Groups:
- Theme Developers (Public)
- Documentation (Public)
- Core Development (Private)
4. Adds six pieces of Group Content and assigns two pieces to each group
5. Adds two views to help display the demo content:
- OG Content Demo
- OG Groups Demo
6. Adds a layout 'Groups' that is set for use by all Groups with blocks to display
the above listed views.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"_config_name": "field.instance.comment.comment_node_group.comment_body",
"field_name": "comment_body",
"label": "Comment",
"entity_type": "comment",
"bundle": "comment_node_group",
"settings": {
"text_processing": 1,
"user_register_form": false
},
"required": true,
"display": {
"default": {
"label": "hidden",
"type": "text_default",
"weight": 0,
"settings": [],
"module": "text"
}
},
"description": "",
"deleted": 1,
"default_value": null,
"default_value_function": null,
"widget": {
"type": "text_textarea",
"settings": {
"rows": 5
},
"weight": 0,
"module": "text"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"_config_name": "field.instance.comment.comment_node_group_content.comment_body",
"field_name": "comment_body",
"label": "Comment",
"entity_type": "comment",
"bundle": "comment_node_group_content",
"settings": {
"text_processing": 1,
"user_register_form": false
},
"required": true,
"display": {
"default": {
"label": "hidden",
"type": "text_default",
"weight": 0,
"settings": [],
"module": "text"
}
},
"description": "",
"deleted": 0,
"default_value": null,
"default_value_function": null,
"widget": {
"type": "text_textarea",
"settings": {
"rows": 5
},
"weight": 0,
"module": "text"
}
}
44 changes: 44 additions & 0 deletions og_demo/config/field.instance.node.group.body.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"_config_name": "field.instance.node.group.body",
"field_name": "body",
"entity_type": "node",
"bundle": "group",
"label": "Body",
"widget": {
"type": "text_textarea_with_summary",
"settings": {
"rows": 10,
"summary_rows": 5
},
"weight": 1,
"module": "text"
},
"settings": {
"display_summary": true,
"text_processing": 1,
"user_register_form": false
},
"display": {
"default": {
"label": "hidden",
"type": "text_default",
"settings": [],
"module": "text",
"weight": 1
},
"teaser": {
"label": "hidden",
"type": "text_summary_or_trimmed",
"settings": {
"trim_length": 600
},
"module": "text",
"weight": 1
}
},
"description": "",
"required": 0,
"deleted": 0,
"default_value": null,
"default_value_function": null
}
44 changes: 44 additions & 0 deletions og_demo/config/field.instance.node.group_content.body.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"_config_name": "field.instance.node.group_content.body",
"field_name": "body",
"entity_type": "node",
"bundle": "group_content",
"label": "Body",
"widget": {
"type": "text_textarea_with_summary",
"settings": {
"rows": 10,
"summary_rows": 5
},
"weight": -3,
"module": "text"
},
"settings": {
"display_summary": true,
"text_processing": 1,
"user_register_form": false
},
"display": {
"default": {
"label": "hidden",
"type": "text_default",
"settings": [],
"module": "text",
"weight": 1
},
"teaser": {
"label": "hidden",
"type": "text_summary_or_trimmed",
"settings": {
"trim_length": 600
},
"module": "text",
"weight": 1
}
},
"description": "",
"required": 0,
"deleted": 0,
"default_value": null,
"default_value_function": null
}
Loading

0 comments on commit 837e811

Please sign in to comment.