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 ¶
Video about pagination with rel prev and next on Google Webmaster Central
Great extension
Great extension, it should be in the core framework!
part of yii2
This functionality is part of Yii 2: http://www.yiiframework.com/doc-2.0/yii-widgets-linkpager.html#$registerLinkTags-detail
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.