Microdata is great way for improving your web appearance and adding semantic to your markup. This way, search engines and other automated web engines make greater use of your content, serve it in a better way to the users and other various benefits. The microdata format is different for all the content types. This article is going to describe how to add microdata to the breadcrumb control. For more information, see Breadcrumb widget.
NOTE: You must follow the following specification when adding microdata.
Drag a Breadcrumb widget on you Sitefinity page and click Edit. You will have two choices from here: either edit the existing Breadcrumb template, which means that every where on your site the markup will be changed or create new template and apply it on the appropriate places. In this article the second option will be shown. Create new template with name "Breadcrumb with microdata" and add the following code:
<%@ Control Language="C#" %>
<%@ Register Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Web.UI" TagPrefix="sf" %>
"http://www.sitefinity.com<;%# Page.ResolveUrl((string)DataBinder.Eval(Container.DataItem, "
url")) %>" itemprop="url"><
><%# DataBinder.Eval(Container.DataItem, "title") %></
Mind the 'itemscope' and 'itemprop' attributes that are added. These are the microdata formats that you need for a breadcrumb. Another thing that worth mentioning is that the Url of the data item that is binded is relative url and you need to resolve it using Page.ResolveUrl to an absolute one.
Click the Save changes button and your changes will be applied to the template. The final result in the rendering should be similar to this:
NOTE: You can use the google webmaster rich snippets tool to check whether your markup is correctly decorated with the microdata format. This tool will show your markup, as seen by the google engine and will show you if you have missed something in your html code.
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important
Copyright © 2023 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.
Progress, Telerik, Ipswitch, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.
Powered by Progress Sitefinity