Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 :