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) -->
[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='']
<!-- /Pagination Links (Bottom) -->
My url settings are:
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.
Also, leaving Redirect ON is not going to hurt you. It will also handle most redirects from old URLs to new URLs.
Sorry, in the URL Settings "Default category page url" field.
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.