angel Posted August 9, 2013 at 08:42 AM Share Posted August 9, 2013 at 08:42 AM Hi there, I'm on version 2.2 and would like to add some SEO fixes on listing pages: 1) Add rel="next" and rel="prev" to pagination 2) Add noindex for different the different ordering settings except the original Can you let me know which files I should be looking at to get this done. For #1 pagination, I have got this far: - I know for pagination it is the "$Paginator->display_pages()" function. - I copied the Pagination Helper file from jreviews version 2.3 to my this installation version 2.2 and it works fine - However it is still not adding in rel="next" or prev yet although I see a function for it as follows at the end of the file: /** * http://googlewebmastercentral.blogspot.com/2011/09/pagination-with-relnext-and-relprev.html * @param type $page */ function addPrevNextUrls(&$page) { if($this->num_pages > 1) { if($this->current_page == 1) { $page['next_url'] = $this->getPageUrl(2); } elseif($this->current_page == $this->num_pages) { $page['prev_url'] = $this->getPageUrl($this->num_pages-1); } else { $page['prev_url'] = $this->getPageUrl($this->current_page-1); $page['next_url'] = $this->getPageUrl($this->current_page+1); } } } Thanks. Link to comment
Alejandro Posted August 9, 2013 at 01:18 PM Share Posted August 9, 2013 at 01:18 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
angel Posted August 9, 2013 at 01:35 PM Author Share Posted August 9, 2013 at 01:35 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alejandro Posted August 9, 2013 at 01:59 PM Share Posted August 9, 2013 at 01:59 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
angel Posted August 9, 2013 at 03:26 PM Author Share Posted August 9, 2013 at 03:26 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alejandro Posted August 9, 2013 at 03:36 PM Share Posted August 9, 2013 at 03:36 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
angel Posted August 10, 2013 at 03:59 PM Author Share Posted August 10, 2013 at 03:59 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alejandro Posted August 11, 2013 at 12:31 AM Share Posted August 11, 2013 at 12:31 AM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
angel Posted August 11, 2013 at 08:33 AM Author Share Posted August 11, 2013 at 08:33 AM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Recommended Posts