Re: Limiting Pagination to a certain number (range) of links.

7 posts by 3 authors in: Forums > CMS Builder
Last Post: February 23, 2015   (RSS)

In response to: [url "https://www.interactivetools.com/forum/forum-posts.php?postNum=2230532#post2230532"]Limiting Pagination to a certain number (range) of links.[/url], ...

I have got this to work but my site uses filtering so is there a way to specify the page the next and previous page links go to rather than the page it is currently on.

Hi, as you can see from the link supplied the site uses filtering so when the next and previous page links go to page 2 for example it opens a second page of whatever page you are on which because of the filtering does not work properly so I need to be able to specify a page to go in this instance:

http://www.qcl.org.uk/NEW-SITE/isotope-site-v2/isotope-site-11/

If you click on News & Dates you sill see what I mean.

It works ok if you go to the sixth form area and then the news in there because that section wrosk slightly differently by being a specific news page.

Oh and I ahve got rid of the pagination and am using the standard next and previous page links that comes inthe code generator.

By claire - February 19, 2015

Looks like you're using JS to swap between the different site sections, so there's no actual page refresh. Is this right?

--------------------

Claire Ryan
interactivetools.com

Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

The site uses Javascript isotope (filtering) so unless you go to a new page then you actually stay on the one page, so yes no actual page refresh.

By claire - February 23, 2015

The standard pagination isn't going to work with this then, sorry. I'll have to refer you to consulting@interactivetools.com for a custom solution.

I've heard of Isotope but I have no experience with using it, so I don't really have any pointers here. I'll email this thread around the dev team here to see if anyone's got any ideas for you.

--------------------

Claire Ryan
interactivetools.com

Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

By Dave - February 23, 2015

Basically, the way to do it is to determine exactly what you'd want the link to be in each case and then work backwards from there.

You might actually want to not use the built-in prev/next links and just make your own.  You could even just add a field for each record "next link", or generate them programmatically.

Hope that helps!

Dave Edis - Senior Developer
interactivetools.com