I have a need to add a page to a Backdrop website that includes a view of some inputs submitted by other users and will automatically refresh in a browser every 20 seconds or so.
I have found a way of doing this by including some code in a custom version of the page.tpl.php file that I have added to my theme's templates. However, I suspect there must be a better way of achieving this. My code adds a refresh meta tag into the head of the page.
<?php $node = $GLOBALS['_GET']['q']; if ($node == 'node/1079') { ?> <meta http-equiv="refresh" content="20"> <?php } print backdrop_get_html_head(); ?>
I should be very interested to hear of alternative ways of achieving this.
Maybe check out the Block Refresh module to see how it does it...?