By johnpitcairn on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
10.2.x
Introduced in version:
10.2.0
Issue links:
Description:
A block condition plugin has been added with 3 checkboxes allowing blocks to be displayed or hidden on pages that match standard http response codes.
- Success (200)
- Access denied (403)
- Page not found (404)
The first represents any normal successful page view. The latter 2 are commonly referred to as "error pages", with content configurable at /admin/config/system/site-information.
Example configuration
All 3 checkboxes are unchecked by default, meaning no restriction will be applied.
To hide a block on error pages
Check Success (200).
To display a block only on specific error pages
Check either Access denied (403), Page not found (404), or both, as required.
To display a block on all except specific error pages
Check Success (200) and either Access denied (403) or Page not found (404).
Impacts:
Site builders, administrators, editors