localgovdrupal/localgov_step_by_step
Composer 安装命令:
composer require localgovdrupal/localgov_step_by_step
包简介
LocalGovDrupal distribution: Gov.uk style Step By Step navigation.
README 文档
README
What is it?
This module attempts to implement the Gov.uk Step by step navigation journeys.
Our implementation provides a Step by step overview content type that refers to several pages of the Step by step page content type. When this overview or any of the Step by step pages is viewed, the Step by step navigation appears. This navigation lists all the Step by step pages belonging to the related Step by step overview.
What is in it?
- 2 x Content types:
- Step by step overview
- Step by step page
- 3 x blocks all coming out of a View:
- Step by step navigation. This is supposed to appear in all Step by step pages.
- A similar Step by step navigation, but this one is for the Step by step overview.
- Previous/Next links for each Step by step page.
Install process
-
Standard Drupal module installation process applies. But...
-
The 3 x block configuration files are only installed if you are using the LocalGov Drupal base theme. So before installing this module, open these three files and replace "localgov_theme" with your theme name:
- config/optional/block.block.localgov_step_by_step_navigation.yml
- config/optional/block.block.localgov_step_by_step_navigation_block_for_overview.yml
- config/optional/block.block.localgov_step_by_step_prev_next.yml
You can revert these changes after module installation as these files are no longer needed.
-
Alternatively, add these three blocks from the Drupal block layout admin page. The Prev/Next block should be placed after the "Main page content" block. The other two Step by step navigation blocks can be placed in the second sidebar or after the "Main page content" block based on your preferences.
How to use it
- Add one or more Step by step overviews.
- Add a few Step by step pages. In each of the page, use the "Step by step overview" autocomplete field to refer to the relevant Step by step overview.
- To reorder the Step by step pages, edit the related Step by step overview and drag the Step by step pages.
Limitations
Unlike the gov.uk Step by step prototype, we do not provide pages for substeps.
Known bugs
If you change the Step by step overview of a Step by step page, the old overview will still refer to the Step by step page. This breaks the Step by step navigation. In such scenarios, manually remove the reference to the Step by step page from the old Step by step overview. A fix has been planned.
localgovdrupal/localgov_step_by_step 适用场景与选型建议
localgovdrupal/localgov_step_by_step 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 114.95k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2020 年 06 月 22 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 localgovdrupal/localgov_step_by_step 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 localgovdrupal/localgov_step_by_step 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 114.95k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 24
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2020-06-22