oliverdavies.uk/content/node.f8fd29bb-0c0f-4a94-bb0d-2183ac439246.json
2025-05-11 20:02:12 +01:00

100 lines
No EOL
4.4 KiB
JSON

{
"uuid": [
{
"value": "f8fd29bb-0c0f-4a94-bb0d-2183ac439246"
}
],
"langcode": [
{
"value": "en"
}
],
"type": [
{
"target_id": "daily_email",
"target_type": "node_type",
"target_uuid": "8bde1f2f-eef9-4f2d-ae9c-96921f8193d7"
}
],
"revision_timestamp": [
{
"value": "2025-04-16T14:12:58+00:00"
}
],
"revision_uid": [
{
"target_type": "user",
"target_uuid": "b8966985-d4b2-42a7-a319-2e94ccfbb849"
}
],
"revision_log": [],
"status": [
{
"value": true
}
],
"uid": [
{
"target_type": "user",
"target_uuid": "b8966985-d4b2-42a7-a319-2e94ccfbb849"
}
],
"title": [
{
"value": "Experimenting with the Default Content module"
}
],
"created": [
{
"value": "2024-09-16T00:00:00+00:00"
}
],
"changed": [
{
"value": "2025-04-16T14:12:58+00:00"
}
],
"promote": [
{
"value": false
}
],
"sticky": [
{
"value": false
}
],
"default_langcode": [
{
"value": true
}
],
"revision_translation_affected": [
{
"value": true
}
],
"path": [
{
"alias": "\/daily\/2024\/09\/16\/experimenting-with-the-default-content-module",
"langcode": "en"
}
],
"body": [
{
"value": "\n <p>I recently sent a database to a client whose new Drupal website I'm building.<\/p>\n\n<p>I'd populated\u00a0it with some default users, nodes and menu links that they'd be able to review after they import the database into their hosting.<\/p>\n\n<p>That worked well, but I've also recently been using the <a href=\"https:\/\/www.drupal.org\/project\/default_content\">Default Content module<\/a> which exports entities into YAML and saves them as code alongside the configuration.<\/p>\n\n<p>Now I can install the website from scratch using the exported configuration to re-add the content types, block types, etc, and by enabling a custom module, all the default content will also be recreated.<\/p>\n\n<p>I can tear the site down now and rebuild it as often as I like and avoid contaminating\u00a0my environment with any rogue configuration or content changes.<\/p>\n\n<p>Everything is reproducible.<\/p>\n\n<p>I also wouldn't have needed to send the database to the client. They could have installed Drupal and followed the same steps\u00a0I would do locally and got exactly the same result.<\/p>\n\n<p>I like this approach and can see me using it more on future projects.<\/p>\n\n ",
"format": "full_html",
"processed": "\n <p>I recently sent a database to a client whose new Drupal website I'm building.<\/p>\n\n<p>I'd populated&nbsp;it with some default users, nodes and menu links that they'd be able to review after they import the database into their hosting.<\/p>\n\n<p>That worked well, but I've also recently been using the <a href=\"https:\/\/www.drupal.org\/project\/default_content\">Default Content module<\/a> which exports entities into YAML and saves them as code alongside the configuration.<\/p>\n\n<p>Now I can install the website from scratch using the exported configuration to re-add the content types, block types, etc, and by enabling a custom module, all the default content will also be recreated.<\/p>\n\n<p>I can tear the site down now and rebuild it as often as I like and avoid contaminating&nbsp;my environment with any rogue configuration or content changes.<\/p>\n\n<p>Everything is reproducible.<\/p>\n\n<p>I also wouldn't have needed to send the database to the client. They could have installed Drupal and followed the same steps&nbsp;I would do locally and got exactly the same result.<\/p>\n\n<p>I like this approach and can see me using it more on future projects.<\/p>\n\n ",
"summary": null
}
],
"feeds_item": [
{
"imported": "2025-04-16T14:12:58+00:00",
"guid": null,
"hash": "47bd091b2e6434c4dab3ae5151f7881c",
"target_type": "feeds_feed",
"target_uuid": "90c85284-7ca8-4074-9178-97ff8384fe76"
}
]
}