| PHP-Nuke: Management and Programming | ||
|---|---|---|
| Prev | Chapter 19. Modifying the PHP-Nuke administration panel | Next |
You want to display only, say, 3 News on the hopepage of your PHP-Nuke. But in the administration panel you get only the options to change the "Stories Number in Home" to 5, 10, 15, 20 , 25 and 30.
Go to admin/modules/settings.php and change at line 61[1]:
."</td></tr><tr><td>"
.""._STORIESHOME.":</td><td><select name='xstoryhome'>"
."<option name='xstoryhome'>$storyhome</option>"
."<option name='xstoryhome'>5</option>"
."<option name='xstoryhome'>10</option>"
."<option name='xstoryhome'>15</option>"
."<option name='xstoryhome'>20</option>"
."<option name='xstoryhome'>25</option>"
."<option name='xstoryhome'>30</option>"
."</select>"
|
to
."</td></tr><tr><td>"
.""._STORIESHOME.":</td><td><select name='xstoryhome'>"
."<option name='xstoryhome'>$storyhome</option>"
."<option name='xstoryhome'>3</option>"
."<option name='xstoryhome'>5</option>"
."<option name='xstoryhome'>10</option>"
."<option name='xstoryhome'>15</option>"
."<option name='xstoryhome'>20</option>"
."<option name='xstoryhome'>25</option>"
."<option name='xstoryhome'>30</option>"
."</select>"
|
Now you can select "3" from the drop-down list. You get the idea. See How to set an arbitrary "Stories Number in Home".
| [1] |
Line numbers are subject to change. If you don't find what you expected, search for it. |
| Last updated Sun Aug 7 21:14:12 CEST 2005 | Permalink: http://www.karakas-online.de/EN-Book/set-arbitrary-stories-number-in-home.html | All contents © 2004 Chris Karakas, Claudio Erba |