HOWTO: Proper news pagination (with page numbers!)

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
vilkis

Re: HOWTO: Proper news pagination (with page numbers!)

Post by vilkis »

That solution is for navigation links that have parameter pagenumber in href and will not work for you in prettyurl mode as your links are .../Listing/PAGE_NUMBER/page.
If you can modify php file then you don't need this solution and if not - you need modify it to work in your case.
vilkis
nervino
Power Poster
Power Poster
Posts: 448
Joined: Sun Dec 28, 2008 12:15 pm
Location: Roma, Italy

Re: HOWTO: Proper news pagination (with page numbers!)

Post by nervino »

I see.
Thank you.
NicoCollu
Forum Members
Forum Members
Posts: 34
Joined: Sun Sep 30, 2012 8:05 pm

Re: HOWTO: Proper news pagination (with page numbers!)

Post by NicoCollu »

I might just be an idiot but where in the world does the code that's supposed to go in a Content Page go!?

I have tried entering it into the Content field in a Page and in the actual HTML template.

There must be somewhere else? Or maybe some code to tell the template that php is being used?

Thank you!
vilkis

Re: HOWTO: Proper news pagination (with page numbers!)

Post by vilkis »

It is for News module, so has to be inserted into news summary template.
vilkis
NicoCollu
Forum Members
Forum Members
Posts: 34
Joined: Sun Sep 30, 2012 8:05 pm

Re: HOWTO: Proper news pagination (with page numbers!)

Post by NicoCollu »

vilkis wrote:It is for News module, so has to be inserted into news summary template.
vilkis
Nevermind, works!
Last edited by NicoCollu on Wed Oct 17, 2012 5:39 pm, edited 1 time in total.
NicoCollu
Forum Members
Forum Members
Posts: 34
Joined: Sun Sep 30, 2012 8:05 pm

Re: HOWTO: Proper news pagination (with page numbers!)

Post by NicoCollu »

Thanks a lot for sharing!

Helped me out a lot! Just had to change a few very small things to fit my CSS style and then it was perfect!
Spy1664
New Member
New Member
Posts: 3
Joined: Tue Sep 21, 2010 8:58 pm

Re: HOWTO: Proper news pagination (with page numbers!)

Post by Spy1664 »

Hello,

I have a problem with paging module news. Exchange with the French forum (hence my very bad English is google translated that for me). They told me to come right here to describe my worries.

Graphically my pagination looks like this when you are on page 1: 1 2 >>

the URL of the next page ie "2" is not properly taken into account instead of me show me the URL that displays <em> following </ em> /

When I have other pages eg 3 or more pages and that I am the first and I want to go directly to the 3 by clicking the number, it sends me to page 2 and vice versa when I on page 3 and I want to return to the one, I am required to go to page 2.

The trouble is it does not take into account the number of pages to be able to move from page 1 to 3 or vice versa.

Excuse me for my English and still hoping for a little help.

thank you
carasmo
Power Poster
Power Poster
Posts: 506
Joined: Thu Feb 08, 2007 6:11 pm
Location: Florida

Re: HOWTO: Proper news pagination (with page numbers!)

Post by carasmo »

I honestly can't follow what you're trying to accomplish. Here is an example of how the pagination posted here works:

http://dropsoul.com/test-summary.html

I can click on 2 when I'm not on 2
Locked

Return to “Tips and Tricks”