Datafeedr Support Forums

Datafeedr Support Forums (http://www.datafeedr.com/forums/index.php)
-   Problems (http://www.datafeedr.com/forums/forumdisplay.php?f=68)
-   -   Pagination Links issue (http://www.datafeedr.com/forums/showthread.php?t=3596)

digitalcow January 12th, 2011 04:09 AM

Pagination Links issue
 
Before I mention my latest problem can I just say good work on the Update Settings Only Option in datafeedr. Will make life a lot easier.

Right, today's problem:)

On previous advice from Eric about my pages not showing as I have a lot of categories with the same name I have renamed the links to store/category/%ci/. I can now get the individual categories so that is all fine. What isn't working now is the Pagination Links.

For example, the homepage of my Jackets category has the url of http://ukchic.co.uk/store/category/514605/ (note the category ID no in there which means that the system now knows the difference between a black dress and a black skirt) but in the pagination links at the top of the bottom if I want to go to the 2nd page of results the url is formatted thusly http://ukchic.co.uk/store/category/2/ which of course gives me a 404 as there is no category 2.

I have been through the factory and cannot work out how to change the pagination to reflect the sites new url structure.

The code I am using for pagination links is
<!-- Pagination Links (Bottom) -->
<div class="pgr">
Pages:
[pager.first text='<img src="[server.plugin_url]/first.gif" alt="first page" />' alt='']
[pager.prev text='<img src="[server.plugin_url]/prev.gif" alt="prev page" />' alt='']
[pager.pages delim=' ']
[pager.next text='<img src="[server.plugin_url]/next.gif" alt="next page" />' alt='']
[pager.last text='<img src="[server.plugin_url]/last.gif" alt="last page" />' alt='']
</div>
<!-- /Pagination Links (Bottom) -->

My url settings are:



Thanks

Eric January 12th, 2011 10:13 AM

This is because there is no way for the script to determine if the category ID is a page or a category ID. Both are numbers.

You could something like this: store/category/c%ci/ so that the category ID is not treated as a number anymore.

Eric January 12th, 2011 10:14 AM

Also, leaving Redirect ON is not going to hurt you. It will also handle most redirects from old URLs to new URLs.

digitalcow January 12th, 2011 10:25 AM

Quote:

Originally Posted by Eric (Post 16506)
This is because there is no way for the script to determine if the category ID is a page or a category ID. Both are numbers.

You could something like this: store/category/c%ci/ so that the category ID is not treated as a number anymore.

where should I use this? in the pagination code or the default category page url box?

thanks

Eric January 12th, 2011 10:29 AM

Sorry, in the URL Settings "Default category page url" field.

tkh378 July 14th, 2011 08:49 PM

this was my exact problem and adding the "c" before the category id worked, and now i can go from page to page.


All times are GMT -5. The time now is 02:25 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.