localgovdrupal/localgov_demo

Example content for demonstrating the LocalGovDrupal distribution and to help with development.

Installs: 49 396

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 7

Forks: 1

Open Issues: 11

Type:drupal-module

3.0.0-alpha2 2023-09-04 13:46 UTC

README

Example content for demonstrating the LocalGov Drupal distribution and to help with development.

Enabling this module through the admin interface is not supported. Attempting to enable this module through the admin interface will likely fail as it exceeds PHP execution limits.

Instead, install the module from the terminal using

drush en localgov_demo

If you're using Lando or ddev, you'll need to add the relevant command before this.

So, for Lando, run:

lando drush en localgov_demo

Or, for ddev, run:

ddev drush en localgov_demo

Updating and adding content

To update default content already included in the module simply run:

drush dcem localgov_demo

To add new content add entity UUIDs to the localgov_demo.info.yml file and export the content as above. Details on how to find entity UUIDs can be found here: https://www.drupal.org/docs/8/modules/default-content-for-d8/defining-default-content
(Hint: use Devel).

Or

Export content and all references with:

lando drush dcer <entity type> <entity id> --folder=modules/contrib/localgov_demo/content/

Notes:

  1. The --folder definition is relative to the web root.
  2. There is no slash at the start of the path, it is --folder=modules/contrib...
  3. You should delete the localgov_demo/content/user directory before committing code if using this method as it will include users.
  4. You should also add the new UUIDs to the localgov_demo.info.yml file.