Jump to content



Photo
- - - - -

Indicate paginated content


  • Please log in to reply
4 replies to this topic

#1 ONLINE   bonbec

bonbec
  • Members
  • 65 posts
  • Real Name:Fred
  • Gender:Male
  • Location:Vichy - France

Posted 12 April 2017 - 06:57

Hello,

 

I have just read this page of Google support regarding the use of rel = "prev" and rel = "next" tags.
Is it a good idea to add it to the pagination code?

 

https://support.goog...r/1663744?hl=en

 

You can change the last 2 characters of the url to have the page in your language :

en = english

fr = french

es = spanish

de = deutch

...


Live   : OsC 2.2, php 5.2 & UTF-8

Local : OsC 234BS for future shop


#2   burt

burt

    I drink and I know things

  • Community Team
  • 12,504 posts
  • Real Name:G Burton
  • Gender:Male
  • Location:UK/DEV/on

Posted 12 April 2017 - 09:04

@bonbec

 

From that page, I am pretty sure we did this:

 


  • Specify a View All page. Searchers commonly prefer to view a whole article or category on a single page. Therefore, if we think this is what the searcher is looking for, we try to show the View All page in search results. You can also add a rel="canonical" link to the component pages to tell Google that the View All version is the version you want to appear in search results.

 

See;

 

https://github.com/g...nonical.php#L38

https://github.com/g...nonical.php#L40

https://github.com/g...listing.php#L13


This is a signature that appears on all my posts.  It is not specifically aimed at you.

 

IF YOU MAKE A POST REQUESTING HELP...please state the exact version of osCommerce that you are using. THANKS
 
If you are still on the old style osCommerce, it is time to move to Responsive.

 


#3 ONLINE   bonbec

bonbec
  • Members
  • 65 posts
  • Real Name:Fred
  • Gender:Male
  • Location:Vichy - France

Posted 12 April 2017 - 11:41

@burt

 

Yes I see the rel="canonical", I install the module in my local 234BS Edge version.

But my question is about the HTML attributes rel="next" and rel="prev" to indicate the relationship between individual URLs.

 

If I understood correctly, but I can be mistaken, it is to indicate that page 2 is the logical continuation of page 1, etc ....

As the example indicated on the page of the support Google. The objective is not the same as for the rel="canonical".

 

Since my first post, I have seen that raiwa has created a module for rel="prev" rel="next". So I think this is a good complement to the rel="canonical".


Edited by bonbec, 12 April 2017 - 11:42.

Live   : OsC 2.2, php 5.2 & UTF-8

Local : OsC 234BS for future shop


#4   burt

burt

    I drink and I know things

  • Community Team
  • 12,504 posts
  • Real Name:G Burton
  • Gender:Male
  • Location:UK/DEV/on

Posted 12 April 2017 - 13:08

It would defintely be super-cool to revisit this as the "prev/next" would be superior to the "all".  

Maybe a coder would code it and give it back to the Community.


This is a signature that appears on all my posts.  It is not specifically aimed at you.

 

IF YOU MAKE A POST REQUESTING HELP...please state the exact version of osCommerce that you are using. THANKS
 
If you are still on the old style osCommerce, it is time to move to Responsive.

 


#5   frankl

frankl

    One of the originals...

  • Community Sponsor
  • 512 posts
  • Real Name:Frank
  • Gender:Male
  • Location:Sydney, Australia

Posted 14 April 2017 - 00:54

@bonbec @burt

 

This is the code I use for pagination http://forums.oscomm...-234/?p=1742521


Let's make things easier for new osCommerce users http://forums.oscomm...bles/?p=1718900  Getting there with osCommerce 2.4! :thumbsup: