To be used at your own risks. All functionalities described below could be removed in any subsequent minor/major release and are excluded from the GCWeb public API.
Documentation and/or working examples for those features could be incomplete or not available.
Break up long and complex content into pages that each focus on a step or specific answer people need before moving to the next step or section. Ideal for presenting services and processes.
Working examples
Layout
The layout for the index page is different from the sections pages. Below are code samples of how the GC Subway elements are laid out before the plugin has been initialized.
Index page
The GC Subway code snippet for the index page can be placed anywhere within the content of the page (<main>). However, make sure the heading level is appropriate. Also, the sub-section items must not be included in the index page.
Section page
The GC Subway code snippet for the section page must be placed at the beginning of your content, before the title (<h1>).
Style
Class (mandatory): active
To be added to the active page's link (<a>) in the GC Subway navigation.
Class (optional): noline
To be applied on a sub-section list (<ul>). It will remove the vertical line connecting all sub-sections. It will also add a horizontal line connecting the active sub-section with the main subway line. Example of correct implementation.
Semantic
Index page
The heading's level will be dependent on your document's structure.
Section page
Main GC Subway element
The GC Subway navigation allows for up to two (2) levels of list items. However, the default and recommended structure is only one (1) level.
Document navigation
To be added at the end of your content, before the related information block (if applicable). This navigation is mandatory for section pages.
Related information (optional)
To be added at the end of your content, after the document navigation block. This block is optional. It will be displayed on the right side under the GC Subway navigation on md and lg breakpoints and at the end of the content on xs and sm breakpoints.
Configuration
Attribute
Description
Default
Example
data-sections-title
Text used for the dynamically created title visible above the subway navigation on md and lg breakpoints.