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
| Package | Type | Owns |
|---|---|---|
drupal/empire | drupal-recipe | Content model, Feeds feed types, Views, default content, roles, docs |
drupal/empire_theme | theme | SDC components, view modes, design tokens, Canvas registration |
drupal/empire_tools | module | Onboarding + 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
- Go to
/admin/empire/setup. - Paste your channel — an
@handle, a channel URL, aUC…ID, or a feed URL. - Click Build my site. Empire resolves the channel, provisions the feeds, imports recent videos, and you are done.
- Manage everything from the
/admin/empiredashboard.
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
docs/setup.md— setup, importing, curating videos, privacy & consent, troubleshootingdocs/architecture.md— how and why it is built this way
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2026-06-10