1
I've searched, but can't seem to find an answer. I am trying to setup my site to only display one news item at a time on the main page.
I took a look at modules/news/index.php and changed
for ( $i = 5; $i <= 30; $i = $i + 5 ) {
$sel = '';
if ($i == $xoopsOption['storynum']) {
$sel = ' selected="selected"';
}
$storynum_options .= '';
}
to
// Changed to allow for only one story to be selected
// for ( $i = 5; $i <= 30; $i = $i + 5 ) {
for ( $i = 1; $i <= 30; $i = $i + 5 ) {
$sel = '';
if ($i == $xoopsOption['storynum']) {
$sel = ' selected="selected"';
}
$storynum_options .= '';
}
I then cleared the cache on my browser and the website and went to admin, but still only have the option to select to display news items in increments of 5, starting at 5.
I also tried brute force:
// Test to see if this alters selection ability
// for ( $i = 1; $i <= 30; $i = $i + 5 ) {
// $sel = '';
// if ($i == $xoopsOption['storynum']) {
// $sel = ' selected="selected"';
// }
$i = 1;
$sel = '1';
$storynum_options .= '';
// }
No luck though.
Any hints?