1
daibt
how to put latest news in home page
  • 2005/4/4 4:07

  • daibt

  • Not too shy to talk

  • Posts: 191

  • Since: 2005/3/26


Dear all,

Could you tell me how to put latest news on the home page?

Thanks in advance,
Truong Dai - Vietnam

2
brash
Re: how to put latest news in home page
  • 2005/4/4 5:00

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


There are several ways. Easiest is once you have your News module setup, goto your XOOPS admin preferences and set the News module as your default homepage module.

3
daibt
Re: how to put latest news in home page
  • 2005/4/4 5:08

  • daibt

  • Not too shy to talk

  • Posts: 191

  • Since: 2005/3/26


OK - I got it, but I do not want the New recent, New topic in homepate. I need only 1 latest news only. Could you help me?

4
brash
Re: how to put latest news in home page
  • 2005/4/4 5:15

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


That is a little trickier. You can either hack the code to allow you to select only to display 1 news item per page, or by far the easiest way woulo be to use a spotlight block. What version of News are you using?

5
daibt
Re: how to put latest news in home page
  • 2005/4/4 5:26

  • daibt

  • Not too shy to talk

  • Posts: 191

  • Since: 2005/3/26


I am using original module in Xoops. It is version 1.1

Could you tell me other way or other new module that can address my requirement? Thanks in advance

Truong Dai - Vietnam

6
brash
Re: how to put latest news in home page
  • 2005/4/4 5:47

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


Two ways. Update to News 1.3 and use the inbuilt spotlight block.

Or download the spotlight module that will enable you do do this for News 1.1. Have a look in the module repository and on the forums for the spotlight module.

7
daibt
Re: how to put latest news in home page
  • 2005/4/4 6:48

  • daibt

  • Not too shy to talk

  • Posts: 191

  • Since: 2005/3/26


Thanks for your information. I hope that I can have a solution for this matter.

Thanks for your support.
Truong Dai - Vietnam

8
exbanious
Re: how to put latest news in home page
  • 2005/4/4 8:14

  • exbanious

  • Not too shy to talk

  • Posts: 113

  • Since: 2004/5/30


I believe the hack brash is refering to is to edit xoops_version.php in modules\news\

find this bit of code:

Quote:



$modversion['config'][1]['options'] = array('5' => 5, '10' => 10, '15' => 15, '20' => 20, '25' => 25, '30' => 30);




and change it to:

Quote:


$modversion['config'][1]['options'] = array('1' => 1, '5' => 5, '10' => 10, '15' => 15, '20' => 20, '25' => 25, '30' => 30);



then update your news module, go into preferences and select number of news stories to show.
the code will give you the option to show only 1 news item in the index at a time.

9
daibt
Re: how to put latest news in home page
  • 2005/4/4 9:14

  • daibt

  • Not too shy to talk

  • Posts: 191

  • Since: 2005/3/26


Hi,

I think I am still cannot get a solution for my requirement. Please see the "Latest XOOPS news" - I need a latest news on home page and when I put a other new, this new will come to home page automatically.

Thanks in advance,
Truong Dai - Vietnam

10
daibt
Re: how to put latest news in home page
  • 2005/4/4 10:14

  • daibt

  • Not too shy to talk

  • Posts: 191

  • Since: 2005/3/26


any ones help me

Login

Who's Online

171 user(s) are online (102 user(s) are browsing Support Forums)


Members: 0


Guests: 171


more...

Donat-O-Meter

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

Latest GitHub Commits