localgovdrupal / localgov_step_by_step
LocalGovDrupal distribution: Gov.uk style Step By Step navigation.
Installs: 69 839
Dependents: 2
Suggesters: 0
Security: 0
Stars: 1
Watchers: 8
Forks: 1
Open Issues: 14
Type:drupal-module
Requires
- localgovdrupal/localgov_core: ^2.12
Requires (Dev)
- drupal/pathauto: ^1.6
- localgovdrupal/localgov_services: ^2.1
- localgovdrupal/localgov_topics: ^1.0
- 2.x-dev
- 2.1.8
- 2.1.7
- 2.1.6
- 2.1.5
- 2.1.4
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.10
- 2.0.9
- 2.0.8
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.x-dev
- 1.0.1
- 1.0.0
- 1.0.0-alpha2
- 1.0.0-alpha1
- dev-fix/2.x/issue-110-strict-types
- dev-release-2.x
- dev-feature/117/aria-current
- dev-fix/2.x/coding-standards-from-drupal-coder-update
- dev-fix/2.x/71-step-titles
- dev-107/fix/is-syncing
- dev-feature/issue-104
- dev-fix/2.x/100-move-parent-page-field
- dev-fix/2.x/97-strict-types
- dev-feature/2.x/localgov-600-autopopulate-preview-links
- dev-fix/2.x/strict-types-coding-standards
- dev-fix/2.x/replace-and
- dev-fix/2.x/php-8.2-warnings
- dev-feature/84-coding-standards
- dev-feature/drupal-10
- dev-fix/2.x/74-standardise-field-order
- dev-hotfix/fix/2.x/75-visible-summary
- dev-feature/2.x/37-block-title-as-h2
- dev-fix/61-search-result-display
- dev-fix/localgov-core_142-pathauto_patterns
- dev-fix/55-fix-test-namespace
- dev-bugfix/52-tests-default-theme
- dev-release-1.x
- dev-feature/2.x/core-92-workflow-permissions1
- dev-fix/1.x/32-teaser-view-mode
- dev-feature/localgov-alpha-dependencies
- dev-fix/24-unpublished
- dev-feature/13-github-ci
- dev-feature/49-sitemap
This package is auto-updated.
Last update: 2024-11-05 12:06:43 UTC
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.