seo-link-pager Generates rel="prev" and rel="next" links and meta tags

  1. Requirements
  2. Usage
  3. Resources

For paginated content, google recommend putting rel="prev" and rel="next" links on the anchors and on meta elements in the head section.

This pager creates that automatically, extending CLinkPager

Requirements

Yii 1.1.10

Usage

Simply use this class as a pager class

$this→widget(‘myListView’, array(
‘dataProvider’=>$dp,
‘itemView’=>’_single’,
‘sortableAttributes’=>array(
‘id’,
‘field1’,
‘field2’,
),
‘pager’ => array(
‘class’ => ‘SeoLinkPager’,
)
));

Resources

Project page on Github

Video about pagination with rel prev and next on Google Webmaster Central

2 0
13 followers
394 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Others
Tags: pager, seo
Developed by: chux
Created on: Apr 21, 2012
Last updated: 12 years ago

Downloads

show all

Related Extensions