Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Breadcrumbs using microdata or RDFa

Quote Reply
Breadcrumbs using microdata or RDFa

Wondering if anyone has reformatted their breadcrumbs to utilize microdata or RDFa so that the breadcrumb will appear in your Google search results: https://developers.google.com/structured-data/breadcrumbs

Any help would be appreciated!

Quote Reply
Re: [macbethgr] Breadcrumbs using microdata or RDFa In reply to

Mm, I don't see why it couldn't be done - but never really tried it. This looks like it could work:

<div id="a" itemscope itemtype="http://data-vocabulary.org/Breadcrumb" itemref="b">
<a href="http://www.example.com/dresses" itemprop="url">
<span itemprop="title">Dresses</span>
<div id="b" itemscope itemtype="http://data-vocabulary.org/Breadcrumb" itemprop="child" itemref="c">
<a href="http://www.example.com/dresses/real" itemprop="url">
<span itemprop="title">Real Dresses</span>
<div id="c" itemscope itemtype="http://data-vocabulary.org/Breadcrumb" itemprop="child">
<a href="http://www.example.com/clothes/dresses/real/green" itemprop="url">
<span itemprop="title">Real Green Dresses</span>

So something like this may work:

<%loop title_loop%>
<div id="breadcrumb<%row_num%>" itemscope itemtype="http://data-vocabulary.org/Breadcrumb" itemref="breadcrumb<%row_num+1%>" <%if row_num > 1%>itemprop="child"<%endif%> >
<a href="<%URL%>" itemprop="url">
<span itemprop="title"><%Name%></span>
</a> &gt;

Hope that helps


Andy (mod)
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Breadcrumbs using microdata or RDFa In reply to
Thanks Andy, I'll give it a try...