Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By coreb on
I have a client that wants a feature, and I have no idea how to do it. The want a random image (from image.module) to be displayed on the opening page of her site. The opening page would consist of only a logo, and the random image. When you click on either of them, you would be taken to the main part of the site.
Comments
just do it outside of
just do it outside of drupal..
I thought of doing that, but
I thought of doing that, but I would have still needed to import the drupal libraries/modules. That could've gotten too messy. Thanks, though.
ah. great that you found a
ah. great that you found a solution.
It's just that I thoguht that image module saved images to the file ssystem anyway, making it trivial to extract images... but guess i was wrong.. :p
random image..
Using a combination of the front_page.module and the tweaking the display (x) random thumbnails in a page snippet to display the full image instead of a thumbnail will do it for you...
The front_page.module isn't paramount, there are other ways of doing it, but, it will make it easier for you to setup.
Just remember to select the PHP filter when saving your front page....
hope that helps..
Dub
Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate
D'Oh! I was so busy looking
D'Oh! I was so busy looking for some other feature, I skipped over that. That worked perfectly. Thank You.