catchdigital/catch_all

一个通配符配置文件,允许进行基础安装。

安装次数: 21,740

依赖项: 0

建议者: 0

安全性: 0

星标: 0

关注者: 4

分支: 0

公开问题: 5

类型:drupal-profile

1.0.2 2023-07-27 13:32 UTC

This package is auto-updated.

Last update: 2024-09-27 16:15:55 UTC


README

设置

这是一个配置文件,用于快速安装和设置一个具有基本配置的原生项目。此配置文件使用以下模块

请注意,其中许多模块只有支持 Drupal 10 的开发版本可用。随着更多模块的更新,这些贡献模块的版本需要更新。

"drupal/admin_toolbar": "^3.3"
"drupal/focal_point": "^2.0@alpha"
"drupal/field_group": "^3.4"
"drupal/imageapi_optimize": "^4.0"
"drupal/imageapi_optimize_resmushit": "^2.0@beta"
"drupal/paragraphs": "^1.15"
"drupal/metatag": "^1.22"
"drupal/pathauto": "^1.11"
"drupal/rabbit_hole": "^1.0@beta"
"drupal/redirect": "^1.8"
"drupal/seckit": "^2.0"
"drupal/simple_sitemap": "^4.1"
"drupal/smart_trim": "^2.0"
"drupal/stage_file_proxy": "^2.0"
"drupal/username_enumeration_prevention": "^1.3"
"drupal/linkit": "6.0.x-dev"
"drupal/google_tag": "^1.6"
"drupal/hook_event_dispatcher": "4.x-dev"
"drupal/webp": "^1.0@dev"
"drupal/gin": "^3.0@RC"
"drupal/paragraphs_ee": "^2.0"
"drupal/gin_toolbar": "^1.0@RC"

设置

安装

推荐使用 drush site-install 命令进行安装。 drush si catch_all -y

您可以考虑使用以下其他参数

  • --account-name
  • --account-pass
  • --site-mail
  • --site-name

配置文件包含的内容

内容类型

  • 基本页面
  • 内容页面

媒体类型

此配置文件还提供了焦点点和图像优化设置,以便于裁剪。

  • 图像
  • 文件

用户角色

  • 管理员
  • 产品所有者
  • 内容编辑者

模块

  • admin_toolbar
  • admin_toolbar_search
  • admin_toolbar_tools
  • big_pipe
  • block
  • breakpoint
  • ckeditor
  • config
  • config_translation
  • content_translation
  • content_moderation
  • contextual
  • core_event_dispatcher
  • crop
  • ctools
  • dynamic_page_cache
  • dblog
  • editor
  • entity_reference_revisions
  • field
  • field_group
  • field_ui
  • file
  • filter
  • focal_point
  • google_tag
  • hook_event_dispatcher
  • image
  • imageapi_optimize
  • imageapi_optimize_resmushit
  • inline_form_errors
  • language
  • link
  • linkit
  • locale
  • media
  • media_library
  • menu_link_content
  • menu_ui
  • metatag
  • metatag_dc
  • metatag_hreflang
  • metatag_open_graph
  • metatag_twitter_cards
  • node
  • options
  • page_cache
  • path
  • path_alias
  • preprocess_event_dispatcher
  • quickedit
  • rabbit_hole
  • redirect
  • redirect_404
  • responsive_image
  • rh_media
  • rh_node
  • roleassign
  • seckit
  • settings_tray
  • simple_sitemap
  • smart_trim
  • syslog
  • system
  • text
  • token
  • toolbar
  • update
  • user
  • username_enumeration_prevention
  • views_ui
  • workflows
  • pathauto
  • views
  • paragraphs
  • paragraphs_ee
  • gin
  • gin_toolbar
  • webp

更新配置文件

有关创建配置文件的更多信息,请参阅此处: https://www.drupal.org/docs/distributions/creating-distributions/how-to-write-a-drupal-installation-profile

  1. 导出您的配置。
  2. 将您的配置复制到配置文件 cp config/sync/* docroot/profiles/custom/catch_all/config/install
  3. 删除所有 UUID find docroot/profiles/custom/catch_all/config/install -type f -exec sed -i '' '/^uuid:/d' {} \;
  4. 删除所有 _core find docroot/profiles/custom/catch_all/config/install -type f -exec sed -i '' '/_core:/{N;d;}' {} \;
  5. 删除不需要的文件 rm docroot/profiles/custom/catch_all/config/install/system.site.yml docroot/profiles/custom/catch_all/config/install/core.extension.yml
  6. 使用您已安装的任何模块更新 catch_all.info.yml