The Drupal WxT distribution is designed for organizations that must meet accessibility and bilingualism standards. It attempts to integrate with the design patterns found in the WET-BOEW and Canada.ca design system, including the mandatory Content and Information Architecture (C&IA) Specification for the Government of Canada.
To make working with Drupal WxT easier, there are potentially three ways you can approach it.
Distribution
The Drupal WxT distribution method stands out as a preferred choice for web developers and organizations seeking a robust web development solution.
Unlike a standalone installation, the distribution provides a comprehensive package of features and workflows that have been vetted and tested by the Drupal WxT community based on real world use cases.
This means users can leverage a well-established framework with proven capabilities, saving time and effort in development while ensuring stability and reliability.
By opting for the distribution method, teams gain access to shared resources, ongoing support, and a community-driven ecosystem, hopefully helping to build accessible, and bilingual web experiences with confidence.
Benefits
- Many canadian departments and organizations have contributed features and improvements
- Has received several security and accessibility audits to the codebase and markup
- Will stay on top of security releases within a maximum of 72 hours of posting
- Creation of many plugins in order to more fully integrate with the WET-BOEW and Canada.ca design system
- Best effort open source support from a community of developers
- Provides upgrade paths for all supported components
- Additional functionality is provided by WxT Extend modules which target a specific feature
- Stays on top of performance related issues taking into account both MySQL and PostgreSQL
Components
Component | Features | Machine Name | Type |
---|---|---|---|
WxT |
| wxt | Distribution |
WxT Bootstrap |
| wxt_bootstrap | Standalone |
WxT Library |
| wxt_library | Standalone |
WxT Admin |
| wxt_admin | Distribution |
WxT Core |
| wxt_core | Distribution |
WxT Extend |
| wxt_extend | Distribution |
WxT Translation |
| wxt_translation | Distribution |
Standalone Installation
A standalone installation allows you to install and configure the standalone components type discussed in the previous section separately without relying on a pre-packaged distribution (composer project).
A composer project will often include multiple modules whether both custom and contributed along with the various configuration and dependencies they will rely on.
Drupal WxT offers a standalone installation as an alternative for those users who don’t want the full weight of a distribution and prefer more control over their setup while still conforming to the Government of Canada C&IA Specification.
Instead users can opt to create their own distribution (composer project) and install only the specific modules and themes required for their needs.
At a minimum and to comply with the WET-BOEW and Canada.ca design system you only need use 2 components.
Benefits
- Can still conform to the Government of Canada C&IA Specification
- Numerous accessibility audits to help improve markup and content information architecture
- Integrates tightly with the WET-BOEW and Canada.ca design system
- Best effort open source support with a community of developers
- Provides upgrade paths for all supported components
Components
Component | Features | Machine Name | Type |
---|---|---|---|
WxT Bootstrap (Theme) |
| wxt_bootstrap | Standalone |
WxT Library (Module) |
| wxt_library | Standalone |
For the WET-BOEW Framework Assets it is mandatory that you follow the expected naming convention and that these files be placed within the /libraries
folder.
For you convenience all of these components are already part of a composer repository that can be added very easily to your new or existing composer project.
{
...
"require": {
...
"drupal/wxt_bootstrap": "^8.0",
"drupal/wxt_library": "^8.0",
},
...
"repositories": [
{
"type": "composer",
"url": "https://drupalwxt.github.io/composer-extdeps/"
}
],
...
}
Note: It is still recommended to use the distribution method, as the standalone option receives limited support and you will lose out on some of the functionality / plugins that help to more fully integrate with the WET-BOEW and Canada.ca design system.
Leverage as a Reference Implementation
If you prefer full control over your codebase and want to reduce external dependencies, you can use Drupal WxT as a reference implementation.
This means that, as long as you provide proper attribution, you have the freedom to copy or fork any part of the codebase and incorporate it into your own project.
The main drawback of this approach is that you won’t receive community support and also won’t have the same tight integration of features with the WET-BOEW and Canada.ca design system.
However you can selectively choose exactly what you need for your project, potentially saving some time and reducing additional external dependencies.
Our advice at the end of the day is you must consider what is best for your department or organization in the long term.