1
mferreira
Select the number of news items to display on top page = 1
  • 2006/4/5 22:20

  • mferreira

  • Just popping in

  • Posts: 57

  • Since: 2006/1/19


How can i put a 1 to the option Select the number of news items to display on top page of the news module? i can only see 5, 10... etc.

Thanks
Sorry for my bad english... :)
I love to learn, feel free to tell me when I misspell something.
Using Xoops 2.0.16, FC4, PHP 5.0.4-10.5, Apache 2.0.54-10.4, mysql-4.1.20-1.FC4.1.

2
jensclas
Re: Select the number of news items to display on top page = 1

You probably could but I can't help with how - it will be in the files somewhere. I would advise against it in the sense that the more news topics shown on this main page the more the reader can see to select from to click on and read more. If you only have one they might think there is only one news story and nothing more. This is for the 'top page' which is a kind of index page/introduction to all your news items not just one. Once an article is clicked on in 'more' they will get just that one article and the commets on it.

3
exbanious
Re: Select the number of news items to display on top page = 1
  • 2006/4/6 1:07

  • exbanious

  • Not too shy to talk

  • Posts: 113

  • Since: 2004/5/30


edit - news/xoops_version.php


find this:
$modversion['config'][1]['name'] = 'storyhome';
$modversion['config'][1]['title'] = '_MI_STORYHOME';
$modversion['config'][1]['description'] = '_MI_STORYHOMEDSC';
$modversion['config'][1]['formtype'] = 'select';
$modversion['config'][1]['valuetype'] = 'int';
$modversion['config'][1]['default'] = 5;
$modversion['config'][1]['options'] = array('5' => 5'10' => 10'15' => 15'20' => 20'25' => 25'30' => 30);


change the last line so it looks like this:

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



then update your news module and change the number of stories under preferences.

4
mferreira
Re: Select the number of news items to display on top page = 1
  • 2006/4/6 15:07

  • mferreira

  • Just popping in

  • Posts: 57

  • Since: 2006/1/19


It worked perfectly, thanks

Quote:
I would advise against it in the sense that the more news topics shown on this main page the more the reader can see to select from to click on and read more. If you only have one they might think there is only one news story and nothing more. This is for the 'top page' which is a kind of index page/introduction to all your news items not just one. Once an article is clicked on in 'more' they will get just that one article and the commets on it.


I want it like an "article of the day" block that can show the images no only entering but from startpage. Maybe I will enable a module that shows more articles.
Sorry for my bad english... :)
I love to learn, feel free to tell me when I misspell something.
Using Xoops 2.0.16, FC4, PHP 5.0.4-10.5, Apache 2.0.54-10.4, mysql-4.1.20-1.FC4.1.

Login

Who's Online

149 user(s) are online (113 user(s) are browsing Support Forums)


Members: 0


Guests: 149


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