Views

 

This page has only Drupal 6 instructions.

 

Here we'll create a view that lists all your webpages and their accessibility warning.

 

Create the view

  1. Go to Site building -> Views -> Add.
  2. In the View name field, enter "accessibility_report".
  3. Click the Next button.

 

Add fields

  1. Click the plus (+) sign beside Fields.
  2. Scroll down and select the check boxes beside "Node: Title", "Accessibility: Severe Totals", "Accessibility: Moderate Totals", and "Accessibility: Suggestion Totals".
  3. Click the Add button.
  4. Click on the reorder icon (arrows pointing up and down) beside Fields.
  5. Drag the fields to be in the order: Title, Severe Totals, Moderate Totals, Suggestion Totals.
  6. Click the Update button.
  7. Click on the link Node: Title under Fields.
  8. Select the check box next to Link this field to its node and click the Update button.

 

Format the view as a table

  1. Click on the Unformatted link beside Style under Basic settings.
  2. Select the radio button beside "Table" and click the Update button.
  3. At the bottom of the screen, select the radio button next to "Severe Totals" in the DEFAULT SORT column.
  4. Select "Descending" from the Default sort order drop down list.
  5. Click the Update button.

 

Filter to only include web pages

  1. Click the plus (+) sign beside Filters.
  2. Scroll down and select the check box beside "Node: Type" and click the Add button.
  3. Check box beside "Web Pages" and click the Update button.  If you have other content types, make sure to select them as well.

 

Set the sort order

  1. Click the plus (+) sign beside Sort criteria.
  2. Scroll down and select the check box beside "Accessibility: Severe Totals", "Accessibility: Moderate Totals", and "Accessibility: Suggestion Totals click the Add button.
  3. Select the radio button "Descending" and click the Update button. (You will need to do this three times, one for each field we selected)
  4. Click on the reorder icon (arrows pointing up and down) beside Sort Criteria.
  5. Drag the fields to be in the order: Severe Totals, Moderate Totals, Suggestion Totals.
  6. Click the Update button.

 

Configure the display

  1. Click the Add Display button on the left had side. This should add a Page display.
  2. Click on the None link beside Path under Page settings.
  3. Enter "accessibility_report" and click Update.
  4. Click on the None link beside Title under Basic settings.
  5. Enter "Accessibility Report" and click Update.
  6. Click on the No link beside Use pager under Basic settings.
  7. Select the radio button next to "Full pager" and click Update.
  8. Click the Save button.
  9. You can now see the page by going to http://<your_site_address>/accessibility_report.
  10. You may not see any totals if you haven't run the accessibility tests yet. See the Accessibility Testing section.