Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
By EddyFK on
Hy,
i want to ser the site in maintenance mode BUT allow still some pages. Can i easely add some "allowed" pages to a list and done?
Comments
This functionality does not
This functionality does not appear in core. There may be a contributed module that allows for this, but I've never seen one myself. Searching the modules (http://www.drupal.org/project/modules) is probably your best bet, if such a module exists.
Look hook_menu_site_status_alter()
For anyone wondering, you can alter the access to pages in maintenance mode.
From user.module, line ~1800 :
Trying to add "foo/bar", and it worked like a charm. This is a hook of hook_menu_site_status_alter(), passing site status by reference allowing you to dynamically alter access to some pages in maintenance mode.
Writing your own quick module could do the trick in few lines :)
Quick example :