Adds access key support to SilverStripe

Installs: 3 009

Dependents: 2

Suggesters: 0

Security: 0

Stars: 5

Watchers: 16

Forks: 8


dev-master 2016-02-16 03:05 UTC

This package is not auto-updated.

Last update: 2024-02-26 08:49:47 UTC



The module allows editors to specify access keys for pages and have them all listed in an access key directory.


  • SilverStripe 3.0+


Install with composer by running:

composer require silverstripe/accessibility:*

in the root of your SilverStripe project.

Or just clone/download the git repository into a subfolder (usually called "accessibility") of your SilverStripe project.

After either installation method, you'll need to run dev/build.


Adding Access Keys

In the Settings tab of each page you'll find an Access Key text field. You can enter in any single character in here. This will be available as $AccessKey in the templates. In order for accesskeys to be available, they must be defined as links on all pages. One way to do this is within a hidden div in the footer of your page:

<div class="hidden accesskeys">
<% loop AccessKeys %>
	<a href="$Link" accesskey="$AccessKey">$AccessKey = $Title</a>
<% end_loop %>

This markup can be found in, and can be included in your footer as:

<% include AccessKeys %>

If you do not have styles defined for the hidden class, you should put this in your layout css (or scss) file:


This has already been implemented in the express theme.

Adding an Accessibility Page

The module adds an Accessibility Page page type. Templates for this page can use $AccessKeys to list all pages on the site that have an access key set. So for example:

<% if AccessKeys %>
<table class="table">
		<% loop AccessKeys %>
				<td><a href="$Link">$Title</a></td>
		<% end_loop %>
<% end_if %>

The template for this page type can be found at templates/