Without having to install even more modules on the site for context. I know there a boat load of plugins for context, but I was wondering if this can be achieved by just using core context:

I basically want to show a view block on all the 404/403 pages, which are just basic page nodes. The problem with context is when you choose path as the condition, it will only show up on that path, which is the 404/403 node paths only. Even if you put in something random like: foo.com/adsfadsf -- the context won't fire since its not a recognized path even though it is the 404 page.

What context recipe can restrict a block to show up on the error pages only? I know i can list out all the paths i dont want it to show up on, but thats not going to work in my scenario.


A better way to do this is create a panel page for 403 and 404 page. Add whatever you want to in the panes.

Set the 403 and 404 page path under :

Admin > Configuration > System > Site Information

There is a section called ERROR PAGES. Add both the path there.

Edit :

For context use Context Error module.

  • im not using panels. im mainly using context as a replacement to panels. Dec 3 '14 at 15:53
  • Check the updated answer. Dec 3 '14 at 16:07
  • yea but i was wondering if there was a method where you didnt need to install another module. Dec 3 '14 at 18:57
  • I dont think so. Thats why this module is contributed. Dec 4 '14 at 4:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.