Needs review
Project:
Omega
Version:
7.x-3.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Jul 2011 at 09:53 UTC
Updated:
11 Apr 2017 at 00:41 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
rodneireis commentedSame here. Subscribing.
Comment #2
desiostudios commentedSame here... also subscribing.
Comment #3
Dropper commentedI have the same problem - but I did my theme from scratch without Omega. This seems to be a more general problem...
Update: I found a Solution (not sure, if this here is the same Problem)
Comment #4
laraz commentedWhere is the maintenance-page.tpl.php ? I can't find it.
Thanks.
Comment #5
DanGun commentedi am also missing a maintenance-page.tpl.php. still hoping to receive an answer, although this issue is quite old.
Comment #6
PCateNumbersUSA commentedLike to know as well.
Comment #7
marcoka commentedComment #8
Anonymous (not verified) commentedI'd also like to see this feature!
Comment #9
RKopacz commentedGiving this a nudge. I am trying to put a site up with Omega. Trying to use the offline maintenance page as a "Coming Soon" page. Followed prior SOP and put a copy of the maintenance-page.tpl.php into subtheme folder, etc. Doesn't work. Anybody have any ideas on how to customize this page, and if there is anything special I need to do in Omega, would love to hear them.
Comment #10
elgandoz commentedA pro base theme like this really needs this basic feature. Following and subscribing and requesting...
Comment #11
krista_fredal commentedCould someone explain to me, a novice user of omega, how to modify the lay-out of the maintenance-page? For instance, I would like to insert an image and a link to the page. Where can I put this?
I think I should use the delta and context module, but it's not clear to me how to begin exactly?
Comment #12
Anonymous (not verified) commentedIf you know some HTML, just put an image (or whatever you want) in 'admin/config/development/maintenance'.
Comment #13
knalstaaf commentedI think this is a basic need.
The website looks totally unprofessional in maintenance mode.
I tried copying the page.tpl.php from the alpha folder to my theme folder (under "templates"), but that gave a blank page.
Instead I've put this in
modules/system/system.theme.cssfor the time being:Comment #14
WarZ commentedWell, u can add your custom stylesheet link into
<head>tag in maintenance-page.tpl.php of your theme.Example:
It will work :)
Comment #15
WarZ commentedCode of my maintenance-page.tpl.php
And my stylesheet code:
Comment #16
knalstaaf commented#15 works for me, thanks.
So in fact, the page code from #15 is not from a page.tpl.php in the Omega theme folder, but from the default Drupal theme?
Comment #17
cadoughe commentedknalstaaf, I think you can pick one of the maintenance-page.tpl.php files in any of the default themes loaded by Drupal [it looks like Seven and Garland each have one] and throw that in your templates folder in your Omega subtheme. I had to theme the tpl.php file with inline CSS, though, because even when I define a custom stylesheet to be called when in maintenance mode, it will only be applied to the inner pages of the site, not the maintenance page itself.
Comment #18
WarZ commented#16,
Slighty modified, but it is.
Comment #19
cellar door commentedChanging to a feature request. May not make it into 3.2 but would be good for future inclusion at some point.
Comment #20
mrfelton commentedOnce cause of a broken maintenance page (when using maintenance-page--offline.tpl.php) is #1722586: Additional uncaught exception when site is offline, causes broken maintenance template.
Comment #21
mrfelton commentedAlso note that if you are using an installation profile, and your theme lives in profiles/myprofile/themes, then you also need the following in your settings.php file:
$conf['install_profile'] = 'myprofile';Comment #22
Po3t commentedAny progress on this yet?
Comment #23
roborew commentedJust thought I'd put in my solution for this scenario.. This doesn't require any coding and is also a useful practice when launching a site.
Instead of putting the site in offline mode use the Content Access module.
I've created a new content type called landing page and created one article for this content type. I've set this as the new Landing Page in the Site Settings. I've then limited the access to other content types to only authenticated and admin users. I have only one menu block to the left with the region 'force render' unchecked so that this new page fills the screen.
You could go further with the layout by either using the context and delta to play with the layout of the landing page. Or alternatively create some template files for the new Landing Page content type.
To take live I can adjust the access to the other content types, then edit the default landing page settings.
hope this helps
Comment #24
Po3t commentedI went with #15's option and modified the maintenance page code as necessary. Worked like a charm.
Comment #25
letrotteur commentedI've created a maintenance-page.tpl.php in my omega subtheme. So far so good. But I just can't get any of the theme or subtheme stylesheets! All scripts are loaded. So the question is:
Why ain't $styles variable loading any stylesheet of the theme or subtheme? I've looked at Garland and/or Bartik and both themes load themes stylesheet in the maintenance page. There might be something I'm missing out here.
Comment #26
glamdring commentedI was going crazy cause none of these worked in my subtheme, theme, or templates folder.
The only solution I found was to replace /modules/system/maintenance-page.tpl.php with my custom template. Just figured I would post in case anyone else had this problem.
Comment #27
ñull commentedThe hooks in template.php are missing. I found a solution to at least a maintenance page for a subtheme.
Result is that both theme and css file are used and that is what we wanted here, isn't it? I don't have the time to try it but may be it is sufficient that this is done in the Omega parent theme and that would then get in the direction of the feature patch we are looking for.
Comment #28
kpa commentedI had this issue as well, not being able to load stylesheets from my maintenance page. A simple hook fixed this:
Comment #29
nerdoc commented@kpa, this did not fix the issue I have here.
Comment #30
rooby commentedThis is most definitely a bug, not a feature.
The maintenance page is an important part of Drupal core and for it to be broken is a bug.
Comment #31
rooby commentedComment #28 seems to fix the missing CSS. Here is a patch for that.
This issue also adds a default maintenance page template: #1727986: No maintenance page in Alpha