Jump to content

pagination.tpl


guil182

Recommended Posts

Hello,

 
I'm v1.6.1.1 and I do not understand the behavior of paging with rel = "prev" and rel = "next"
Indeed, a category with 2 pages:
 
Page 1: ">" button with rel = "next" -> normal but "2" button without rel .... why?
Page2: "<" button and "1" rel = "nofollow" -> why? :(
 
thank you in advance for your help
Link to comment
Share on other sites

hi,

 

Prestashop did anything with pagination.tpl and rel tags :(

Rel next prev tags and should never be in style tags but in the header.

 

At the and, it should work like this (4 pages) :

 

Page 1 

<head>
    ...
    <link rel="next" href="articles-batman-2" />
    <link rel="canonical" href="articles-batman-1" />
    ...
</head>
 
Page 2
<head>
    ...
    <link rel="next" href="articles-batman-3" />
    <link rel="prev" href="articles-batman-1" />
    <link rel="canonical" href="articles-batman-2" />
    ...
</head>
Page 3
<head>
    ...
    <link rel="next" href="articles-batman-4" />
    <link rel="prev" href="articles-batman-2" />
    <link rel="canonical" href="articles-batman-3" />
    ...
</head>
and Page 4
 
<head>
    ...
    <link rel="prev" href="articles-batman-3" />
    <link rel="canonical" href="articles-batman-4" />
    ...
</head>
 
You know how to do this ?
 
Best regards
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...