-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adds Default Content module to --dev and documents it * Upgrades PHP to 8.3 * Moves recipe folder above webroot * fixes composer.json oomph composer installer conflicts --------- Co-authored-by: “Kerry <“kmurphychi@gmail.com”>
- Loading branch information
1 parent
5b2abd7
commit 76bb29b
Showing
9 changed files
with
60 additions
and
32 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
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
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
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
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
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
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,46 @@ | ||
# Creating Default Content | ||
|
||
Instructions on how to use the Default Content module to create default content | ||
for a recipe. | ||
|
||
## Enable the Default Content module. | ||
|
||
The module is required in the dev section. It is not required in production. | ||
|
||
fin drush en -y default_content | ||
|
||
## Exporting content | ||
|
||
Content can be exported to a module or recipe, but we want to export to a recipe | ||
so we do not need the default_content module on production. We can apply a | ||
recipe to import the content. | ||
|
||
1. Create a recipe at `[project-root]/recipes/[recipe-name]` | ||
|
||
The recipe only needs to have a folder with it's name and a recipe.yml with | ||
|
||
``` | ||
name: 'Example' | ||
description: 'Demo content for example.' | ||
type: 'Content' | ||
``` | ||
|
||
2. Create a `/content` folder in that recipe. | ||
|
||
3. Export the content you want. | ||
|
||
`drush dcer [entity_type] [bundle or ID] --folder=../recipes/[recipe-name]/content` | ||
|
||
dcer gets all the dependencies of the entity you are exporting. | ||
|
||
### Available [entity_type]s: | ||
|
||
* node | ||
* menu_link_content | ||
* taxonomy_term | ||
* media | ||
* user | ||
|
||
4. Disable the module when done. | ||
|
||
fin drush pmu -y default_content |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
api_version: 1 | ||
web_docroot: true | ||
php_version: 8.2 | ||
php_version: 8.3 | ||
database: | ||
version: 10.6 | ||
drush_version: 10 | ||
|
Empty file.