What I'm trying to do is create a page that is just a header bar across the top with a button that when clicked will randomly pull a url from the database and then load it into that page, retaining the header bar so that the user can press the button continuously and keep getting a new page loaded.

Essentially a mechanism for browsing a list of URLs randomly.

I think I can do the header part with the "external iframe" module but I'm trying to find a good module for managing a list of urls along with a way of getting one to the other (I'm guessing this will take some coding on my part).

Any help would be greatly appreciated. Thanks!

Comments

mcfilms’s picture

So you could use the Link Field module to add your URLs and Validate them. Then you could use Views to randomize the list of links and you could use the external iframe module to display these links in an iFrame. You would need to follow the instructions at http://drupal.org/node/1100662 about customizing the template to keep your Views block in the header along with your site logo. The View you write for the header would need to include a random link with something like "Next Random Site" and clicking that should load the next random site in the iframe.

This is one of those projects that can take an hour if it all works out right. (Or days if it doesn't)

A list of some of the Drupal sites I have designed and/or developed can be viewed at motioncity.com