By matteo.c on
Is it possibile refresh a drupal page after elapsed X seconds?
For example in html is it possibile to use META HTTP-EQUIV="REFRESH" tag.
Thank you
Is it possibile refresh a drupal page after elapsed X seconds?
For example in html is it possibile to use META HTTP-EQUIV="REFRESH" tag.
Thank you
Comments
You could possibly add your
You could possibly add your META HTTP-EQUIV="REFRESH" tag into your main site layout template.
If your using the phptemplate engine (default with drupal 4.7) then you could try editing your 'themes/[your theme]/page.tpl.php' (replacing '[your theme]' with your current selection - e.g. 'bluemarine') & adding the tag within the standard head tags. Although by default - that would refresh on every page - which I doubt you'd want.
I'm sure their is a way to check what page your currently on with a php snippet, & only print the page refresh if its the page you want, but im unsure of the variable you'd need to check for that (I'm still pretty new to drupal myself).
Refresh module
Have a look at the refresh module.
Refresh View after N seconds
if you want to refresh a view after a set number (5 in example code ) of seconds place the
<meta http-equiv="refresh" content="5" />in the header section of the view. In my case i created an basic input type. Works great!Edited by WorldFallz - added <code> tags.