localgovdrupal / localgov_demo
演示 LocalGovDrupal 分发的示例内容,并帮助开发。
3.0.1
2024-07-16 11:52 UTC
Requires
- drupal/default_content: ^2.0@alpha
- localgovdrupal/localgov_alert_banner: ^1.2
- localgovdrupal/localgov_core: ^2.12
- localgovdrupal/localgov_directories: ^3.0@alpha
- localgovdrupal/localgov_events: ^3.0@alpha
- localgovdrupal/localgov_guides: ^2.1
- localgovdrupal/localgov_news: ^2.3
- localgovdrupal/localgov_publications: ^1.0
- localgovdrupal/localgov_search: ^1.2
- localgovdrupal/localgov_services: ^2.1
- localgovdrupal/localgov_step_by_step: ^2.1
- localgovdrupal/localgov_subsites: ^2.3
- localgovdrupal/localgov_workflows: ^1.2
- 3.x-dev
- 3.0.1
- 3.0.0
- 3.0.0-alpha2
- 3.0.0-alpha1
- 2.x-dev
- 2.1.10
- 2.1.9
- 2.1.8
- 2.1.7
- 2.1.6
- 2.1.5
- 2.1.4
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.0
- 1.x-dev
- 1.0.1
- 1.0.0
- 1.0.0-alpha4
- 1.0.0-alpha3
- 1.0.0-alpha2
- 1.0.0-alpha1
- dev-135/fix/is-syncing-check
- dev-feature/drupal-11-support
- dev-fix/3.x-134-alert-banner
- dev-135/fix/is-syncing
- dev-feature/24-content-tests
- dev-fix/132/typos
- dev-release-3.x
- dev-fix/3.x/update-class-namespace
- dev-feature/3.x/shared-workflows
- dev-fix/3.x/strict-types
- dev-feature/3.x/123-publications
- dev-fix/2.x/121-strict-types
- dev-release-2.x
- dev-fix/2.x-114-clear-cache-when-setting-front-page
- dev-fix/3.x-114-clear-cache-when-setting-front-page
- dev-feature/3.x/geo_entity
- dev-do-not-merge/3.x/geo_entity
- dev-fix/docs-links-103
- dev-feature/110-coding-standards
- dev-feature/drupal-10
- dev-feature/test
- dev-feature/install-readme-106
- dev-feature/2.x/update-newsroom
- dev-bug/2.x/homepage-paragraph-97
- dev-feature/2.x/search-directories-db-modules
- dev-test/update-localgov_geo
- dev-fix/github-workflow-update-2022-05-09
- dev-71-delete-hello
- dev-fix/68-deprecated-function
- dev-hotfix/57-overlong-word
- dev-feature/2.x/50-demo-home-page
- dev-feature/update-github-actions
- dev-feature/48-updated-demo-content
- dev-feature/53-services-menu
- dev-release-1.x
- dev-feature/feature/45-enable-search
- dev-feature/25-default-content-update
- dev-feature/20-errors-in-ui
- dev-fix/null-error
- dev-feature/update_for_renamed_fields
- dev-feature/78-naming-conventions
- dev-feature/campaigns-25-paragraphs-type
- dev-feature/7-github-ci
- dev-feature/remove-private-topics
- dev-feature/topics-name
This package is auto-updated.
Last update: 2024-09-05 13:15:22 UTC
README
演示 LocalGov Drupal 分发的示例内容,并帮助开发。
更新和添加内容
要更新模块中已包含的默认内容,只需运行
drush dcem localgov_demo
要添加新内容,请将实体 UUID 添加到 localgov_demo.info.yml
文件中,并按上述方式导出内容。有关如何查找实体 UUID 的详细信息,请参阅此处:https://www.drupal.org/docs/8/modules/default-content-for-d8/defining-default-content
(提示:使用 Devel)
或者
使用以下命令导出内容及其所有引用
lando drush dcer <entity type> <entity id> --folder=modules/contrib/localgov_demo/content/
备注
- –folder 定义相对于网站根目录。
- 路径开头没有斜杠,它是 –folder=modules/contrib...
- 如果您使用此方法,在提交代码之前应删除
localgov_demo/content/user
目录,因为它将包括用户。 - 您还应将新 UUID 添加到
localgov_demo.info.yml
文件中。