Access Keys


Access Keys Module

Posted by Gordon Anderson on 30 October 2012 | 0 Comments

Blind (and able sighted) users can navigate your site using the keyboard


  • Adds an access key tab to every page in the CMS editor, where an access key can be optionally set
  • Adds an Include template to render the access keys in your HTML
  • Adds an accessibility information page that displays the access keys in readable form for reference
  • Adds an accessibility tab to the Site Configuration in the CMS with option of configuring the 'Skip to Navigation' access key


git clone git://
cd weboftalent-access-keys
git checkout stable24

The name of the installation directory does not matter.


SiteMap Pages

Any class that extends Page, and thus appears in the SiteTree, will have an AccessKey field associated with it. When editing this appears in an Accessibility tab.

Access Key in Accessibility Tab

Access Key in Accessibility Tab


Add the following to your Page templates, after the body tag.

<% include AccessKeys %>


Note that the following CSS will be required in your site in order to not have the access key list showing visually at the top of each website page. Positioning it off the screen still allows screenreaders to read the text, but it will not be visible on the visual output.

#accesskeys {
    position: fixed;
    left: -100000px;

Accessibility Page

An Accessibility Information Page is like any other page except that after the main body, a list of access keys that have been configured is shown.

Accessibility Information

Accessibility Information

Site Configuration

The access key for skipping to main navigation can be configured here

site configuration access keys

site configuration access keys

Silverstripe Version Compatibility

2.4 only (tested with 2.4.5+) - stable24 branch

Tags: , , , ,


No one has commented on this page yet.

RSS feed for comments on this page | RSS feed for all comments