1
lostntime
Need some help with custom blocks ......................
  • 2004/5/14 14:41

  • lostntime

  • Just popping in

  • Posts: 2

  • Since: 2004/5/14


On my main page I have a block for recent news, what I would like to do is have 3 blocks that have recent news from each news catagory. ie.... sports news (recent stories) , international news (recent news) etc... How can I create blocks for this? What code would I put in the custom block?

Thanks in advanced.

2
ladon
Re: Need some help with custom blocks ......................
  • 2004/5/14 15:14

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


hi, take a look at this thread. Applying this code will allow the 2 current blocks (the blocks that display by recent and hits) to function as recent news by category. You could then simply add more blocks that make use of news_top.php. (look in modules/news/xoopsversion.php and modules/news/templates dir to see how blocks are configured and work.)

An easier way is to use the "Topics Block Module", also revered to in the thread mentioned above. A new news module is in beta testing at the moment. If you're not in a hurry, it 'll have these functions as well.

Login

Who's Online

323 user(s) are online (246 user(s) are browsing Support Forums)


Members: 0


Guests: 323


more...

Donat-O-Meter

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

Latest GitHub Commits