Using tags in maintenance mode site down message

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
johnboyuk1
Forum Members
Forum Members
Posts: 192
Joined: Mon Nov 26, 2018 3:09 pm

Using tags in maintenance mode site down message

Post by johnboyuk1 »

I was hoping to use a redirect tag in the maintenance mode message in order to redirect to a temporary page -

{redirect_url to='temporary.html'}

Doesnt seem to work though - anyone know how I can achieve this?
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1625
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Using tags in maintenance mode site down message

Post by DIGI3 »

It only worked for me with by adding a forced refresh to the page, so perhaps it's a bit buggy when used in this context.

One option could be to just put a meta refresh as your sitedown message:

Code: Select all

<meta http-equiv="refresh" content="0;URL='http://newsite.com/'" />
Ideally you should make it a full html template and put that in the <head> but it may work fine with just that. Test on multiple browsers/devices.
Not getting the answer you need? CMSMS support options
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Using tags in maintenance mode site down message

Post by Rolf »

You can add the meta refresh line to the "Page Specific Metadata" box of your error 404 page.
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
johnboyuk1
Forum Members
Forum Members
Posts: 192
Joined: Mon Nov 26, 2018 3:09 pm

Re: Using tags in maintenance mode site down message

Post by johnboyuk1 »

thanks guys. I ended up using a bit of javascript straight into the text window - which I assumed wouldnt work because the smarty tag didnt work, but it did, so does the job it needs to!

Thanks!
Post Reply

Return to “CMSMS Core”