Language selection

Search


Quick implementation guide - GCWeb theme

This is an implementation guide for the Canada.ca theme with version 4.x of the Web Experience Toolkit (WET-BOEW).

The code name for the Canada.ca theme is GCWeb. We use these two terms interchangeably. GCWeb is built on top of WET-BOEW 4.

WET-BOEW 4 is built on top of various other web projects such as:

  • Bootstrap 3 SASS (for a CSS baseline layer)
  • Code prettify
  • Datatable.net
  • Flot chart
  • jQuery
  • jQuery Validation
  • Mathjax
  • Magnific popup
  • Open Layer
  • Data JSON

GCWeb has some additional plugins like:

  • Do action
  • URL mapping
  • Field flow

Set up your template

1. Download the GCWeb library

Version history - Canada.ca theme (GCWeb)

Every release contains the following assets (at the end of the release notes):

2. Copy the content to your Web Server

After downloading the zip file (themes-dist-[version]-gcweb.zip), copy the following folders to your Web server:

The rest of the zip file contains complementary information and demos.

3. Create your page template

As a baseline to create your template, we recommend using a static page, like the generic content page. You can then copy your template from page to page. However, you will need to modify the following parts of the template:

If you are designing a bilingual template skeleton, you will also need to:

To help you create your pages, take a look at the following sections of our documentation:

Customize your template

The Digital Transformation Office at Treasury Board Secretariat (DTO-TBS) provides the guidance on how to use the components implemented in our reference implementation of the Canada.ca theme. While DTO-TBS allows customization for transactional scenarios and campaigns, we recommend you read the guidance for more detailed information about what is allowed:

Use only the Canada.ca style without WET-BOEW's Javascript

GCWeb is designed to work with WET-BOEW. It is compliant with WCAG 2.0 Level AA and fully relies on the WET-BOEW 4 framework. If you are only using the CSS and the base HTML markup, you are encouraged to:

Migrate your content

Before you migrate your content, we recommend you to:

Converting your content pages into GCWeb compatible markup means:

Here are some well-known challenges regarding migrating a site from WET-BOEW 3:

Migrating from CLF 2.0, WET 3.1/4 or other

The WET 4 web authoring coding is still current and it is currently used by the official reference implementation of the Canada.ca theme. Therefor, moving your content page coding toward WET 4 will be compatible with the latest version of GCWeb.

Here are some challenges that might happen during your migration towards the latest version of Canada.ca's theme.

For example, in WET 3.x, if you are using an info module with a span of 3...

<div class="module-info span-3">
	<h3>…</h3>
	<p>…</p>
</div>

...will need to be converted like this:

<div class=”row”>
	<div class=”col-md-6”>
		<section class=”alert alert-info”>
			<h3>…</h3>
			<p>…</p>
		</section>
	</div>
</div>

Stay up-to-date

Every GCWeb release follows a strict version numbering and the release notes contain all the information needed to update your implementation. This includes:

Since February 2019, we have been using and releasing versions in accordance with the semantic versioning 2.0.0 (Design decision #6) where our API is defined by the Design decision #3.

We try and avoid to make breaking changes that impact web authors. Most of our breaking changes impact only the site baseline template and all major changes have a backwards support for at least one (1) year to ease the transition.

Please note that while we work on improving the documentation of all our components, there are still a few gaps. If you have any questions regarding those gaps, feel free to ask us during our weekly office hours.

Get help

Principal Publisher updates the following HTML fragment file every time there is a change to the Canada.ca top menu:

Here are static HTML headers and footers that you can copy and paste into your project, with slight modifications (e.g. metadata).

Bootstrap 3 Bootstrap 4 (experimental)
Example English English
Header Source code, line 1 to 106 Source code, line 1 to 66 (Outdated)
Main content footer Source code, line 115 to 132 Source code, line 74 to 79 (Outdated)
Footer Source code, line 135 to 174 Source code, line 82 to 117 (Outdated)
Notes
  • Includes WET scripts
  • Includes GCWeb styles
  • Needs to have assets paths updated to fit your folder structure
  • Does not include WET scripts
  • Does not include GCWeb styles
  • Does not include the menu
  • Relies on an experimental stylesheet for a Canada.ca look
Special assets All included in the current GCWeb release Download experimental CSS

Page details

Date modified: