Another News Pagination Question

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
harleyquinn
Forum Members
Forum Members
Posts: 36
Joined: Fri Dec 22, 2006 4:29 pm

Another News Pagination Question

Post by harleyquinn »

I'm trying to use pagination for my news articles, and I initially used the pagination built into News 2.3.0.1. It works fine, but I want to show all of the page numbers, so I tried this pagination method from this post: http://forum.cmsmadesimple.org/index.php/topic,10188.0.html.

Unfortunatley it's not quite working -- what's happening is that when I go to the initial page where I have all my article summaries listed, the summaries don't show, but the pagination navigation is there. However, if I click on page 2 of the pagination nav, the summaries start to show. Basically the pagination is off by a page -- does that make any sense? I do have an .htaccess file for pretty urls -- could that have something to do with why it's not displaying the summaries when I initially go to the main summaries page?

Anyone else having this problem?
harleyquinn
Forum Members
Forum Members
Posts: 36
Joined: Fri Dec 22, 2006 4:29 pm

Re: Another News Pagination Question

Post by harleyquinn »

I've been trying to figure this out with no success.

I took a look at the php code in the action.default.php to see if I could figure out how to display all of the page numbers instead of just "Page 1 of 2 > >>", but can't wrap my head around all that code -- I can design but can't figure out php to save my life. Basically what I am trying to do is have the pagination look something like this:
« Prev  1  2 [3]  4  5  6  7  8  9  Next »

Can anyone help point me in the right direction?

Thanks in advance!
HQ
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Another News Pagination Question

Post by Nullig »

I was using the same UDT pagination, which worked fine until I updated the news module from 2.2 to 2.3 - then it stopped working.

I'm not sure what changed, but I'm thinking that I might revert to 2.2, as I liked the UDT pagination better.

Nullig
harleyquinn
Forum Members
Forum Members
Posts: 36
Joined: Fri Dec 22, 2006 4:29 pm

Re: Another News Pagination Question

Post by harleyquinn »

Thanks for responding Nullig, at least I know someone else has experienced the same thing.

I really don't want to have to revert back to news 2.2. :( but most likely will do so if I can't find a solution.

Anyone else out there have any ideas?

HQ
Post Reply

Return to “CMSMS Core”