Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a pagination links microdata entry?

There is a microdata for breadcrumb links: http://www.data-vocabulary.org/Breadcrumb/ But is there a similar microdata for page links, like: [<-] 3 4 5[prev] 6[current] 7[next] 8 9 10 11 [->]

like image 973
alemjerus Avatar asked Sep 12 '12 06:09

alemjerus


1 Answers

Yes, there's the pagination attribute for the Article item, for instance..

But for collection pages there's no direct way, at least not that I know of. Thees sort of pages are often not ment for indexation anyway. But if you feel strongly about it...


1.) Schema.org / SiteNavigationElement

You could use Schema.org's SiteNavigationElement and extend it as a pagination element:

Example:

<!-- The container for your pagination markup -->
<div itemscope itemtype="http://schema.org/SiteNavigationElement/Pagination">
  ...

2.) Schema.org / WebPage / relatedLink

A link related to this web page, for example to other related web pages.

The WebPage item has an attribute called relatedLink that arguably could be used for pagination purposes. Use CollectionPage, that's an extension of the WebPage item, and you still be able to state that there's related pages. This property could also be extended to achieve an higher semantic:

Example

<!-- The pagination link -->
<a itemprop="relatedLink/pagination" href="...">...</a>

The Relation attribute

Also, have a look at rel="next" and rel="prev" to accomplish a markup that touches the subject.

Example:

...
<head>
  <link rel="prev" href="http://www.example.com/article?story=abc&page=1" />
  <link rel="next" href="http://www.example.com/article?story=abc&page=3" />
  ...

Have a look at Google Webmaster Central Blog or WHATWG for additional information.

like image 143
superhero Avatar answered Nov 08 '22 08:11

superhero