drupal/ogcb 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

drupal/ogcb

Composer 安装命令:

composer require drupal/ogcb

包简介

A starter kit for building a government community.

README 文档

README

How to set up a new Drupal 11 project with DDEV and require the OGCB site template.

1. Set up a new Drupal 11 project with DDEV

mkdir ogcb-new && cd ogcb-new
ddev config --project-type=drupal11 --docroot=web --project-name=ogcb-new
ddev start
ddev composer create drupal/recommended-project --no-install

2. Configure composer.json

Minimum stability

The site template and some of its dependencies are not stable releases:

ddev composer config minimum-stability dev
ddev composer config prefer-stable true

Patches file

The site template requires several patches to function. Download the patches file and tell cweagans/composer-patches where to find it:

wget -O patches.json https://git.drupalcode.org/project/ogcb/-/raw/1.x/patches.json

Be sure to replace 1.x with the correct version you are using

Then add to composer.json:

"extra": {
    "composer-patches": {
        "patches-file": "patches.json"
    }
}

3. Require the necessary packages

Require cweagans/composer-patches v2 first. The --no-install flag avoids a partial install before the site template is added:

ddev composer require cweagans/composer-patches:^2 --no-install

Then require the site template:

ddev composer require drupal/ogcb:1.x-dev

This installs Drupal core and all modules the site template depends on, and applies the patches.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2026-06-29