Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Problems
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Important - The support forums are now in "read-only" mode as we transition to an alternative help desk solution. Feel free to contact us here with any of your questions or search the forums for an existing solution.
 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 12th, 2011, 04:09 AM
digitalcow digitalcow is offline
 
Join Date: Jun 2010
Posts: 494
Default 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
  #2  
Old January 12th, 2011, 10:13 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

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.
  #3  
Old January 12th, 2011, 10:25 AM
digitalcow digitalcow is offline
 
Join Date: Jun 2010
Posts: 494
Default

Quote:
Originally Posted by Eric View Post
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
  #4  
Old January 12th, 2011, 10:14 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Also, leaving Redirect ON is not going to hurt you. It will also handle most redirects from old URLs to new URLs.
  #5  
Old January 12th, 2011, 10:29 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Sorry, in the URL Settings "Default category page url" field.
  #6  
Old July 14th, 2011, 08:49 PM
tkh378 tkh378 is offline
 
Join Date: Feb 2011
Posts: 84
Default

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:39 PM.


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