relocate / redirect

General questions about CMSimple
Post Reply
stargazer96
Posts: 28
Joined: Sat Jul 07, 2012 6:16 pm
Location: Budapest, Hungary

relocate / redirect

Post by stargazer96 » Thu Mar 05, 2015 11:11 am

hi all,

in normal html file is used the meta tag
<meta http-equiv="REFRESH" content="5; url=index.html" /> which redirect the page in 5 sec to indicated link (in this case to index page).
in cmsimple for redirect/relocate is using the code
#CMSimple hide# #CMSimple header('Location:?Newpage') ;# which redirect the page instantly to indicated page (in this case to page named "Newpage").
question: could be used to relocate the page not instantly but also just after 5 seconds?
thank you in advance for your answers and help.

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: relocate / redirect

Post by cmb » Thu Mar 05, 2015 12:00 pm

Have you considered to add the desired <meta> element with CMSimple scripting? Something like the following might work:

Code: Select all

#CMSimple $hjs .= '<meta http-equiv="REFRESH" content="5; url=?Newpage" />';#
Christoph M. Becker – Plugins for CMSimple_XH

stargazer96
Posts: 28
Joined: Sat Jul 07, 2012 6:16 pm
Location: Budapest, Hungary

Re: relocate / redirect

Post by stargazer96 » Fri Mar 06, 2015 7:52 am

Works perfectly !!
Thank you -again!- Christoph for your valuable help!
Alex

Post Reply