-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #110 from argiepiano/1.x-2.x-issue-102-alt
Issue #102. Provide demo group and group content.
- Loading branch information
Showing
13 changed files
with
1,078 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
33 changes: 33 additions & 0 deletions
33
og_demo/config/field.instance.comment.comment_node_group.comment_body.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
og_demo/config/field.instance.comment.comment_node_group_content.comment_body.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
44
og_demo/config/field.instance.node.group_content.body.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
Oops, something went wrong.