oddhill / odddrupal

Complete Drupal package that contains our custom installation profiles.
www.oddhill.se
1 stars 1 forks source link

Fix standard solution for 403 & 404 #20

Open Antonranestam opened 8 years ago

Antonranestam commented 8 years ago

Every time we build a new site we need to download the same module and fix 404 and 403 behaviour. It would be very nice if this just worked right out of the box.

olofbokedal commented 8 years ago

@Antonranestam which module are you always using, and how do you configure it?

Antonranestam commented 8 years ago

@olofjohansson As of now it's:

  1. We use Context error. (module that lets us define a context for 404/403)
  2. Empty page callbacks (set up callback so we can setup "fake" 404/403 page in drupal system redirect).

Maybe this isn't the best way? If so, what is? And can we automate the process in some way?

jenslind commented 8 years ago

Would probably be easier to use preprocess_page and add template suggestions for 404 and 403 as shown here.