Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds widget area to 404 template #287

Merged
merged 3 commits into from
Sep 4, 2019
Merged

Adds widget area to 404 template #287

merged 3 commits into from
Sep 4, 2019

Conversation

matt-bernhardt
Copy link
Member

@matt-bernhardt matt-bernhardt commented Aug 2, 2019

Status

Use labels (review needed, in progress, or paused) to declare status

What does this PR do?

This creates a new widget area, Migrated Content Notice, which is loaded on the 404 template to allow site builders to create custom notices about migrated content.

Helpful background context (if appropriate)

This feature is intended to be used as part of a new website for Distinctive Collections, which involves the retirement or migration of almost 2000 pieces of content. Because it will not be possible to create redirects for each piece of retired or migrated content - thus guaranteeing that some traffic will make its way to the theme's 404 template - we are enabling the creation of content advisories at that step in the process.

How can a reviewer manually see the effects of these changes?

This branch has been deployed to the staging server, and a sample advisory created for the /foo* path. The content we anticipate being used for the new DC site is at /test-404

Screenshots:

Current 404 page:
image

New default 404 page (seen when no widgets are defined - phrasing changes slightly)
image

New custom 404 page (content now provided by a widget for a specified URL pattern, replacing the default)
image

Todo:

  • Stakeholder approval

Requires new or updated plugins, themes, or libraries?

NO

Requires change to deploy process?

NO

Copy link

@accesslint accesslint bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are accessibility issues in these changes.

404.php Outdated Show resolved Hide resolved
404.php Outdated Show resolved Hide resolved
404.php Outdated Show resolved Hide resolved
404.php Outdated Show resolved Hide resolved
Copy link

@accesslint accesslint bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏 You fixed the issue(s)! Great work.

@matt-bernhardt matt-bernhardt force-pushed the widgetized-404 branch 2 times, most recently from 0199ac7 to a4e5e35 Compare September 4, 2019 18:00
@matt-bernhardt matt-bernhardt merged commit f659714 into master Sep 4, 2019
@matt-bernhardt matt-bernhardt deleted the widgetized-404 branch September 4, 2019 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants