Sorry for the bunch of questions I'm asking today! I've been at this upgrade now for about 14 hours and it's slow going. I'm working in a separate directory to keep our main site (PostNuke .762) up and running until I iron out the wrinkles in Zikula 1.0.
The News pager appears at the bottom of the home page but not on a category view (there are many more stories that have that category than the 10 displayed). I've searched high and low for the template to modify and what code to add to display the pager to the category view, but I've struck out.
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- internetking created topic »password problem« 25. May
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. 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
News pager appears on home page but not on category view
-
- Rank: Softmore
- Registered: Aug 01, 2006
- Last visit: Jan 20, 2010
- Posts: 107
-
- Rank: Team Member
- Registered: Sep 06, 2006
- Last visit: May 09, 2010
- Posts: 2446
Check if your theme overrides the news_user_view.htm template, because is that one the responsible of the list. The weird thing is that if the pager appears in the homepage, should appear in the category list unless any conditional prevent that.
Also, debug the template inserting <--[pndebug]--> in the first lines and check which values are in the $pager variable for both screens.
--
- Mateo T. -
Mis principios... son mis fines -
- Rank: Softmore
- Registered: Aug 01, 2006
- Last visit: Jan 20, 2010
- Posts: 107
I found the news_user_view.htm template, of course, but how do I determine if my theme overrides that?
Thanks for the hint on the debug variable! I used it in news_user_view.htm and noted that on the home page http://www.firsttrac…zikulafto/index.php it correctly recognizes the number of items:
Code
but when looking at a category view such as http://www.firsttrac…rop=Topic&cat=10023 it incorrectly counts the number of items as 0:
Code
That's got to be something regarding how the categories and topics are constructed, no? Checking the categories_mapobj table there are 2370 stories assigned to topic 10023, which is "Resorts". Here's my categories list:
Code
Root category
General
ActiveStatus
Gender
Pending Status Basic
Approved
Pending
Pending Status Extended
Title
YesNo
Modules
FAQ
global
News
Articles
Features
Equipment Features
Event Features
Other Features
Resort and Destination Features
Technique Features
Pages
Topics
Equipment
Events
Resort and Destination Features
Asia
Australia and new Zealand
Canada Eastern
Canada Western
Europe and Mediterranean
South America
U.S. Eastern
U.S. Midwestern
U.S. Western
Resorts
World Cup
Users
Using "Main" I categorize each story as an "Article" (news) or a "Feature". If it's a Feature I choose from "Equipment Features," "Event Features," "Other Features," "Resort and Destination Features" or "Technique Features."
Then with "Topics" I categorize each Article as "Equipment," "Events," "Resorts" or "World Cup" and if it was a "Resort and Destination Feature" I choose a Topic from "Asia," "Australia and New Zealand," "Canada Eastern," etc. to narrow the geographic focus.
edited by: FirstTracks, Oct 25, 2008 - 12:40 PM -
- Rank: Softmore
- Registered: Aug 01, 2006
- Last visit: Jan 20, 2010
- Posts: 107
I don't know why I didn't think of this before, but I switched to Extralite and...same phenomenon. So it's not the theme, it has to be that the pager isn't getting the right number of articles passed to it. I suspect that it has something to do with the screwy articles/categories configuration passed to it by he way I had PostNuke .764 set up. I've just upgraded the database from scratch again, to solve another problem of orphaned articles, and I'm reluctant to screw around with categories unless someone can really tell me the proper way to do it. -
- Rank: Softmore
- Registered: Oct 17, 2008
- Last visit: Oct 21, 2009
- Posts: 163
Isn't it the same thing that we solved here: http://community.zikula.org/module-Forum-viewtopic-topic-55339-start-15.htm ? -
- Rank: Softmore
- Registered: Aug 01, 2006
- Last visit: Jan 20, 2010
- Posts: 107
lordevol
Isn't it the same thing that we solved here: http://community.zikula.org/module-Forum-viewtopic-topic-55339-start-15.htm ?
Hmmm...I sure hope so, I'll download that file when I get home tonight and try it.
I saw that thread when I was looking for a solution before posting my problem here, but I got the impression that the problem being fixed there was getting news articles not marked to be displayed on the home page to still display in a category view.
That's not my problem, per se -- my problem is getting the news pager to appear on anything other than the home page or index.php?module=News.
For example, the pager does not appear index.php?module=News&func=view&prop=Topic&cat=10021 even though there are literally hundreds if not over 1,000 news articles in the database that have category 10021 for a topic. If I manually add "&page=2" to the end of that URL, page two of the articles list does appear. It just seems that the number of available articles being passed to the pager is zero, thus the pager does not appear on the page.
-
- Rank: Softmore
- Registered: Aug 01, 2006
- Last visit: Jan 20, 2010
- Posts: 107
Yesssssssss!! lordevol, that did it! Thank you, thank you, thank you.
-
- Rank: Softmore
- Registered: Oct 17, 2008
- Last visit: Oct 21, 2009
- Posts: 163
I'm happy for you, I like zikula!
But you should thank nestormateo he helped me to solve my problem,
now if you know how to show the "most hit news" in homepege I will be very happy to read about it :) -
- Rank: Softmore
- Registered: Aug 01, 2006
- Last visit: Jan 20, 2010
- Posts: 107
Yes, thank you to both of you, as well as everyone else who has put up with my half-dozen topics over the past week and provided me with helpful advice. Although I've been around for a few years since I first migrated our site to PostNuke I've only popped in here on a few occasions when I've needed someone much smarter than me to help me solve a problem -- I've never known enough about PHP, mySQL, etc. to lend much assistance to anyone else. What struck me over the past week, however, is how pleasantly helpful everyone here has been. I truly appreciate it!
And if I stumble by accident across a solution to your "most hit news" problem I'll be sure to let you know, but I'll also assure you that it could only happen by accident.
- Moderated by:
- Support
