1
Kellymac
Random News Block - How to do random photos?
  • 2006/2/21 17:31

  • Kellymac

  • Just popping in

  • Posts: 41

  • Since: 2006/2/1 1


I'm trying to modify the random news block and want to include the news items image randomly.
I tried this:







    <{foreach item=news from=$block.stories}>

    ><{$news.title}>
    <{$news.teaser}>
    <{/foreach}>




Probably really simple. What can I say. I'm new to all of this. Help would be appreciated.

2
marcionline
Re: Random News Block - How to do random photos?

Already exist a module with this function. The name is Aleatoire 1.2 (http://xoops.net.br/lingo/modules/rmdp/down.php?id=67).

I'm not certain if works with XOOPS 2.2+...

3
Kellymac
Re: Random News Block - How to do random photos?
  • 2006/2/21 19:07

  • Kellymac

  • Just popping in

  • Posts: 41

  • Since: 2006/2/1 1


That's not what I am looking for though.
I'm looking to display the image of the random news item.
Not just any image.

Login

Who's Online

252 user(s) are online (68 user(s) are browsing Support Forums)


Members: 0


Guests: 252


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits