Anyone know how to display images randomly? I want a different pic to display at the top of my home page every time someone visits. Not sure if this is possible?
Thanks
Pete
little-linguist
25-11-2007, 19:27
Do you mean your header or the picture you've got in the main content of your home page? If it's the latter, that's definately do-able as we've done it(not sure about the header).
This is what I did for ours (www.little-linguist.co.uk): (http://www.little-linguist.co.uk%29:)
You need to create a new "block" for each text / image combination that you want to randomise. Assuming you're going to keep the main "Welcome to Banana Feet.." text part the same, each block will contain exactly the same text but feature a different image. If the text and image combination that you're currently using is written directly onto your home page, create a new "block" via the block manager and move it there instead.
Then copy this block as many times as you need for the different images you want to feature (e.g if you've got 5 images, create a total of 5 blocks). You then just have to change the image in each block so each block has a different image. To keep things tidy, you'll probably find it best to keep each the image in each block exactly the same size, even if some of that is just padding, e.g work with a basic image size of say 125 x 125 px and paste the actual picture into that sized canvas.
Once you've got all your blocks ready, you need to assign them all to the same "random group". This is done via the main page in block manager. Make sure the blocks are "green-flagged" once you're done so they're active.
Finally, go into layout manager, select front page and make sure your blocks are activated in the centre blocks section.
I'm sure I've made that seem way more complicated than it is!
That's exactly what I was after. I'll give it a go as soon as the wine wears off. Thanks m8.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.