Random page list
Permalink
I'm curious if there are any existing add-ons or solutions that allow for a the contents of a page list to be displayed randomly. My end goal is to have a "featured" box thats randomly loads a single page list record that contains the page's link & description. Right now I have a jQuery solution that basically loads all the page list results but only displays one at random, but it seems like theres probably a more eloquent way of doing this.
When you say display randomly, do you mean continuously as in "news ticker" style, or do you mean a different item with each page load? jQuery seems a good solution for the former. If you want to set up completely different blocks for each "item," you might want to check out the Randomizer add-on by the C5 team.
-Steve
-Steve
I've got the news ticker style jquery going already, what I'm looking more for is using the actual page list functionality to pull in one page on each reload.
Its for a medical website, they offer several different services, so I have a page set up with all the services and descriptions displayed. I want to randomly pull in one service on the homepage to highlight it. I have it set up to do that now with the Data Display package, but I was hoping to only have to update the page description in one place rather than in the page attributes and the data display record.
Its for a medical website, they offer several different services, so I have a page set up with all the services and descriptions displayed. I want to randomly pull in one service on the homepage to highlight it. I have it set up to do that now with the Data Display package, but I was hoping to only have to update the page description in one place rather than in the page attributes and the data display record.
The Randomizer does basically what you describe except it displays an item at specified intervals. You could probably easily modify it to disable the interval functionality and just load a random block with each page load. Alternatively, it might actually work well for you as it is. Just specify a really long interval. I'd suggest checking out the screencast for the add-on.
http://www.concrete5.org/marketplace/addons/randomizer/...
-Steve
http://www.concrete5.org/marketplace/addons/randomizer/...
-Steve
Steve