I'm looking for a way to automatically page through a list of views results without user interaction. I am currently listing results as table rows.
For instance, if the view returns 100 total results, I would like to display maybe 20 results and then after a set duration, have the view display replaced with the next 20 results and so on until it reaches the last page and then loops back to the first page. The need for this comes from the fact that data will be displayed on a mounted monitor where there will be no user interaction. In order to display all the results, I need a way to page through the results automatically, somewhat like how flight data may be displayed at the airport or something similar.
I have seen modules such as the View Infinite Scroll module but this requires that you scroll down the page to automatically load more results which is not what I am looking for. It also display the additional results beneath the previous results where I want to only show a single page at a time.
Is there any module that may perhaps solve this for me or do I need to do some kind of custom jQuery?
Comments
Views Slideshow will do this
This is an interesting challenge and at first I thought the answer would involve the use of the Rules module which would very quickly have become very complicated:-(
It turns out that Views Slideshow will do exactly what you want with very little effort.
Normally views slideshow is used to create image slideshows with each image being an individual row within the results of a view. That said, Views Slideshow will display whatever is in your view, not just images.
By default Views Slideshow will override your pager and will show only one result per slide, so you need to enable 'View Action Advanced Options' and change 'Items per slide' accordingly.
You can even use jQuery transition effects between each slide which could look pretty cool on your display.
Good luck
----
EDIT
I had an afterthought about this. Depending on your use case it may be necessary to refresh the View from time to time in order to display any fresh data. I haven't tried it but maybe the Refresh module would do for this.
---
Paul Driver
www.easable.uk
Ilkley, West Yorkshire, UK
Thanks so much for the input.
Thanks so much for the input. I had thought about Views Slideshow originally but I was under the impression that it would display only each row individually. I didn't know about the ability to override an "items per slide".
My view is currently using the Views Auto-Refresh module already to display new data coming and going.
Thanks again, I'll give this a try!