Dunno why but PN has a fixed number of articles displayed in the news HP: you can select just multiples of 5 like 10, 15, 20 and so on.
Anybody has a solution to avoid this limit and display a free number of news without hacking the core?
I mean.. is there a center-block (let's call it LAST#NEWS) that displays 1 (or 2 or 3,or 4, or 7...) last articles (or is so difficult to build)?
Thanks :)
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- nestormateo responded to »Fillters in Clip« 06:33 AM
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 03:19 AM
- frw responded to »Bug in the SMTP mail transfer protocol - Port 25 - Zikula 1.2.9« 22. May
- mdee responded to »Short URL questions« 22. May
- mesteele101 responded to »Problem in Database Connection« 21. May
- Herr.Vorragend responded to »Clip Documentation and Doubt« 19. May
- mazdev responded to »zikula 1.3.3. and IE9« 19. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
How can we display JUST 1 article instead of 5 or 10?
-
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 19
This has annoyed me for some time, as well. You can download specific programs, such as PagEd, which can replace PN news completely and just display one article on the main page.
However, if you want to keep PN news, like I did, because I use AutoTheme 1.7, the fix is thus:
1) Use phpMyAdmin to access your database. If you've never used this program before or generally have no experience, please backup your entire database first.
2) In your PN database, locate the table called nuke_module_vars (you may have a prefix other than "nuke_.") Select that table and browse through the rows. It's a good idea to sort the rows by pn_id now.
3) Row #35 should look like:
Code
35 /PNConfig storyhome s:1:"10";
4) Just change that 10 into 1 or 2, but don't touch anything else... just the number 10.
This will give you the number of stories you choose on the homepage. However, it only lasts until you click on Admin > Settings. If you click on Admin > Settings, the number will go back to whatever it was, so you'll have to go back and do this again.
Hope this helps -
**unknown user**
- Rank: Helper
- Registered: Mar 16, 2002
- Last visit: May 09, 2010
- Posts: 872
Sigh, there is a setting that allows you to set number of stories to display inside Administration -> Settings.
Its just that it doesn't work for people who registered before you changed the settings. -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Nov 29, 2004
- Posts: 10
This is a shot in the dark, but you may be able to modify the selections given by editing NS-Settings admin.php and looking for sel_storyhome. There will be 2 places in the file where a series will occur. If you add additional selection options to these 2 sets, theoretically, it should give you the ability to set what ever numbers you add. I could be completely wrong about this... but I THINK it will work. Haven't tested it yet. Even then you still have the problem like Kenshino mentioned, that all existing users will have whatver the setting was set to when they registered. Hope this helps.
- Moderated by:
- Support
