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

GCWeb has some additional plugins like:

  • Data JSON
  • Do action
  • URL mapping
  • Field flow

Set up your template

1. Download the GCWeb library

Version history - Canada.ca theme (GCWeb)

2. Copy the content from the following folders to your Web Server

3. Create your page template

As a starting point, we recommend using the Static header and footer for Bootstap 3.

Alternatively you can use a static page, like the generic content page, as a baseline to create your template.

You will need to modify the following parts of the template:

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

Customize your template

The Canada.ca design system and the Content and IA specification allow customization for transactional scenarios and campaigns. 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, it is recommended to:

Converting your content pages into GCWeb compatible markup means:

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

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

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