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

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

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

drupal/empire

最新稳定版本:1.0.0

Composer 安装命令:

composer require drupal/empire

包简介

Paste your YouTube channel. Empire builds your video site.

README 文档

README

Paste your YouTube channel. Empire builds your video site.

Empire is a Drupal CMS site template that turns a YouTube channel into a streaming-style video site — a cinematic homepage, browsable collections, and editable video pages — without the site owner needing to understand Drupal.

What you get

  • A hero billboard, Latest row, and collection rails on the homepage.
  • A video page for every imported video, with the YouTube player embedded via consent-aware oEmbed.
  • Editorial control: change titles, write descriptions, upload custom artwork (which overrides the YouTube thumbnail), organize videos into collections, and feature videos — none of which is overwritten when new videos import.
  • Audience capture: contact form and newsletter signup.

The three packages

PackageTypeOwns
drupal/empiredrupal-recipeContent model, Feeds feed types, Views, default content, roles, docs
drupal/empire_themethemeSDC components, view modes, design tokens, Canvas registration
drupal/empire_toolsmoduleOnboarding + homepage layout: channel resolver, feed provisioning, import orchestration, dashboard, Canvas homepage composition (HomepageBuilder)

Feeds does the ingestion. Drupal does the content/rendering. Empire Tools makes it feel like a product.

Install

composer require drupal/empire
drush recipe empire
drush cache:rebuild

Empire composes the drupal_cms_site_template_base baseline, so applying the recipe on a minimal site builds everything: the baseline, the empire_theme theme + empire_tools module, the content model and Views, and the composed homepage. (See docs/setup.md for the from-zero clean install.)

From source (development)

Working from a clone of the monorepo? Under DDEV drush runs from the docroot, so apply the recipe by its absolute in-container path:

ddev drush recipe /var/www/html/recipes/empire
ddev drush cache:rebuild

Use it

  1. Go to /admin/empire/setup.
  2. Paste your channel — an @handle, a channel URL, a UC… ID, or a feed URL.
  3. Click Build my site. Empire resolves the channel, provisions the feeds, imports recent videos, and you are done.
  4. Manage everything from the /admin/empire dashboard.

Roles & trust

Applying the recipe grants the standard content_editor role the Empire permissions — including configure Empire channel and refresh Empire imports, which make outbound requests to YouTube and create content in bulk (both are flagged restrict-access). For a multi-author or untrusted-editor site, move those two permissions to an admin/site-manager role; see docs/architecture.md for the full trust rationale.

Documentation

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固