Permalink
Browse files

Code update for schema post

  • Loading branch information...
1 parent 329114f commit 4c967716331fe0c0f396be1b49fc97d6f73b4368 @jrbasso jrbasso committed Sep 19, 2012
Showing with 27 additions and 13 deletions.
  1. +23 −11 _gists/4287cc6dbfefafac8bb2/breadcrumb.html
  2. +4 −2 _posts/2012-09-19-schema-org-and-breadcrumb.md
@@ -1,11 +1,23 @@
-<span itemscope itemtype="http://www.data-vocabulary.org/Breadcrumb">
- <a href="/cat1" itemprop="url">
- <span itemprop="title">Cat 1</span>
- </a>
-</span>
-&lt;
-<span itemscope itemtype="http://www.data-vocabulary.org/Breadcrumb">
- <a href="/subcat1" itemprop="url">
- <span itemprop="title">SubCat 1</span>
- </a>
-</span>
+<div itemscope itemtype="http://schema.org/Product">
+ <div id="prod_image">
+ <img src="..." itemprop="image">
+ </div>
+ <div id="prod_info">
+ <h2><span itemprop="name">My Product Name</span></h2>
+ <nav>
+ <span itemscope itemtype="http://www.data-vocabulary.org/Breadcrumb">
+ <a href="/cat1" itemprop="url">
+ <span itemprop="title">Cat 1</span>
+ </a>
+ </span>
+ &lt;
+ <span itemscope itemtype="http://www.data-vocabulary.org/Breadcrumb">
+ <a href="/subcat1" itemprop="url">
+ <span itemprop="title">SubCat 1</span>
+ </a>
+ </span>
+ </nav>
+ <div id="prod_description" itemprop="description">
+ This product is cool
+ </div>
+</div>
@@ -32,11 +32,13 @@ do not have any property for categories or breadcrumbs, it is part from the
different scope with microdata.
Unfortunately I didn't find any solution with schema.org only, then I had to use schema.org and the
-deprecated [data-vocabulary](http://www.data-vocabulary.org/). In the breadcrumbs, for each link I use
-the below code:
+deprecated [data-vocabulary](http://www.data-vocabulary.org/). The code in the end was something similar
+with that:
<script type="text/javascript" src="https://gist.github.com/4287cc6dbfefafac8bb2.js"> </script>
This is not the best solution, but it was the balance between do not change the layout because the
microdata and have a nice presentation in search provider results. I hope the schema.org cover it once
breadcrumbs are not restrict to WebPage type or any of the sub-types.
+
+Do you have a better solution using microdata?

0 comments on commit 4c96771

Please sign in to comment.