Hi,
We need to set a "maintenance page" on one of our contao websites. Is there such a mode in Contao? If not, how would you do it? Just a statical index.html file? Or together with some mod_rewrite rules?
Regards,
Raffael
Hi,
We need to set a "maintenance page" on one of our contao websites. Is there such a mode in Contao? If not, how would you do it? Just a statical index.html file? Or together with some mod_rewrite rules?
Regards,
Raffael
There is an extension in the extension repository: [maintenance]
Contao Community Moderator
→ Support options
Thank you.
According to the page is is usable till contao 2.7.2. Do you have it running with the newest version and does it work without any problems?
No, unfortunately not myself. But I know some people in the German board that use this extension on the latest Contao version 2.10.3, too. Without any problems, AFAIK.
Wiki article: http://de.contaowiki.org/Maintenance (in German but I'm sure you get the idea)
Contao Community Moderator
→ Support options
Sweet. Danke dir. Ich rede auch deutsch. Ist darum kein Problem.
Na dann. :D
Contao Community Moderator
→ Support options
Just as an information for the others. This extension doesn't work with the current version. The error message is:
I guess this is something that could be solved fairly easily. But I didn't have the time for it.Code:Notice: Using .tpl files (system/modules/maintenance/templates/view_maintenance.tpl) is deprecated. Please use the new .html5 and .xhtml files instead. in /var/www/clients/client24/web61/web/system/libraries/Controller.php on line 168 #0 [internal function]: __error(1024, 'Using .tpl file...', '/var/www/client...', 168, Array) #1 /var/www/clients/client24/web61/web/system/libraries/Controller.php(168): trigger_error('Using .tpl file...', 1024) #2 /var/www/clients/client24/web61/web/system/libraries/Template.php(246): Controller->getTemplate('view_maintenanc...', 'html5') #3 /var/www/clients/client24/web61/web/system/modules/frontend/FrontendTemplate.php(49): Template->parse() #4 /var/www/clients/client24/web61/web/system/modules/frontend/Module.php(157): FrontendTemplate->parse() #5 /var/www/clients/client24/web61/web/system/libraries/Controller.php(343): Module->generate() #6 /var/www/clients/client24/web61/web/system/modules/frontend/PageRegular.php(100): Controller->getFrontendModule('40', 'main') #7 /var/www/clients/client24/web61/web/index.php(204): PageRegular->generate(Object(DB_Mysql_Result)) #8 /var/www/clients/client24/web61/web/index.php(343): Index->run() #9 {main}
FYI: This is not an error message, it's only a notice that the old template extension (*.tpl) is deprecated! By default, you get no notice when it is not enabled the option "Display error messages" in the system settings.
Since this extension is not yet offically released and tagged for the latest minor version it is obviously clear that some things need to be adapted to the new version (for further information please refer to the official announcement)
To do this, just rename the template "system/modules/maintenance/templates/view_maintenance.tpl" to "view_maintenance.html5" and all should be fine
HTH
Contao Community Moderator
→ Support options
Bookmarks