By panoramical1 on
Not sure if I'm posting in the correct place here. I have just started using Drupal, having previously made my own Content Management Systems...luckily this has given me a good knowledge of PHP and the like.
I have made a theme for my site (drupal.panoramical.co.uk) and I want to have an image that randomly rotates each time. I'd nromally use the rand() command between two numbers and retrieve the appropriate image from the database...but I understand this sort of thing is not something you put in a theme. Would a module suit my needs better, if I were to make my own?
Comments
random images
There's tons of examples on how to produce random images. Try googling "drupal random images".
-------------------------------------------------------
"The sting in any rebuke is the truth." - Benjamin Franklin
Random images
There's no reason why the code for this can't go in your theme; just modify page.tpl.php to suit...
Pete.
You could do it using
You could do it using Views / Views slideshow, that is what I am doing for the main image on http://blogtoit.millwoodonline.co.uk .
----------------------------------------------------------------
IB Community Theme http://communitytheme.ibo.org
Spun Designs http://www.spundesigns.net
Millwood Online http://www.millwoodonline.co.uk