Document article
A single page of a document with navigation to all other pages in that document.
Route name
document_page
URL pattern
/{categorySlug}/{documentSlug}/{pageNumber}
Layout
Article
Module
Publishing
Page class
document-article
Acceptance criteria
- Category specific stylesheet is used
- Document specific metadata is used
- Breadcrumb includes category path
- I can preview a document page
- Preview includes accessibility check javascript
- Approved version is shown
- Page errors if an invalid document ID is passed - 404 response
- Page errors if a category ID not assigned to document is passed - 301 response, redirect to valid category
- Page errors if an invalid page number is passed - 404 response
- If no page number passed, default page number 1 is used
- If password protected and not authenticated, message and password form shown
- Submitting valid password in password form is saved against session
- If password protected and authenticated, or not password protected, document content is shown
- If access level is greater than current session, permission denied message shown
- If access level is less than or equal to current session, document content is shown
- Document title, page title, image, page content are rendered on page
- If document title is the same as page title, only document title is shown
- Image is only shown when completed
- Caption is rendered when completed
- Multimedia content is rendered in document editor content
- List of pages is shown if there are more than one page in document
- Current page is highlighted as active in the list
- Each list item is page title and link to valid document page path
- If page number is greater than 1, previous link is shown
- If page number is less than total number of pages, next link is shown
- Page supplements are shown
- HTML content is rendered unencoded