CuBoulder / express_mono

Monolithic Express Profile - contains all bundles
GNU General Public License v2.0
1 stars 2 forks source link

Adding ability to insert cu_search_large block on a 404 page. #739

Closed AlanBCole closed 3 years ago

AlanBCole commented 3 years ago

This pr simply includes the contrib module context_error which adds a condition to a context's page that triggers the desired reaction on a 404 or 403 error

To test it you will have to:

  1. get a copy of branch issue/123
  2. enable the context_error module
  3. Create a new context
    • go to /admin/structure/context/add
    • name the context something
    • select "403/404 error page" from the Conditions menu
    • select "Blocks" from the Reactions select list, select CU_SEARCH->CU Search Large (found on the right side of the page) and add it to a region of the page (Click "+Add" in a region found in the middle section of the page)
    • click "Save"
  4. Go to a crazy url (or at least one that is definitely not connected to content of your site)
  5. See that there is a search box loaded on the resulting No Results page.