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

Breadcrumbs using microdata or RDFa

Quote Reply
Breadcrumbs using microdata or RDFa
Hello,

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!

Thanks,
George
Quote Reply
Re: [macbethgr] Breadcrumbs using microdata or RDFa In reply to
Hi,

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

Code:
<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>
</a> ›
</div>
<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>
</a> ›
</div>
<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>
</a>
</div>

So something like this may work:

Code:
<%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;
</div>
<%endloop%>

Hope that helps

Cheers

Andy (mod)
andy@ultranerds.co.uk
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...