CMS Made Simple Forums
https://forum.cmsmadesimple.org/

HOWTO: Proper news pagination (with page numbers!)
https://forum.cmsmadesimple.org/viewtopic.php?f=4&t=10188
Page 3 of 3

Author:  vilkis [ Tue Oct 02, 2012 10:26 am ]
Post subject:  Re: HOWTO: Proper news pagination (with page numbers!)

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

Author:  nervino [ Tue Oct 02, 2012 10:29 am ]
Post subject:  Re: HOWTO: Proper news pagination (with page numbers!)

I see.
Thank you.

Author:  NicoCollu [ Thu Oct 04, 2012 12:21 pm ]
Post subject:  Re: HOWTO: Proper news pagination (with page numbers!)

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!

Author:  vilkis [ Thu Oct 04, 2012 12:29 pm ]
Post subject:  Re: HOWTO: Proper news pagination (with page numbers!)

It is for News module, so has to be inserted into news summary template.
vilkis

Author:  NicoCollu [ Thu Oct 04, 2012 1:06 pm ]
Post subject:  Re: HOWTO: Proper news pagination (with page numbers!)

vilkis \vilkis:
It is for News module, so has to be inserted into news summary template.
vilkis


Nevermind, works!

Author:  NicoCollu [ Wed Oct 17, 2012 5:38 pm ]
Post subject:  Re: HOWTO: Proper news pagination (with page numbers!)

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!

Author:  Spy1664 [ Wed Oct 24, 2012 3:22 pm ]
Post subject:  Re: HOWTO: Proper news pagination (with page numbers!)

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

Author:  carasmo [ Wed Oct 24, 2012 5:01 pm ]
Post subject:  Re: HOWTO: Proper news pagination (with page numbers!)

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

Page 3 of 3 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/