Snippets — the few lines of text that appear under every search result — are designed to give users a sense for what’s on the page and why it’s relevant to their query.
If Google understands the content on your pages, we can create rich snippets — detailed information intended to help users with specific queries. For example, the snippet for a restaurant might show the average review and price range; the snippet for a recipe page might show the total preparation time, a photo, and the recipe’s review rating; and the snippet for a music album could list songs along with a link to play each song. These rich snippets help users recognize when your site is relevant to their search, and may result in more clicks to your pages. Source: Google
Within Learndot, Rich Snippets can be used to display and link to upcoming training courses directly from the Google results page, as shown in the screenshot on the right.
Rich Snippet Integration Guide
There are three methods that can be used to add rich snippets to a page; only the microdata method will be discussed here as it is the one recommended by Google. For further information, please consult Rich Snippets Help.
You can apply microdata markup to your upcoming Learndot courses using the following approach:
This presumes you have an upcoming instructor led training blurb or page
Step 1: Locating a suitable blurb
Locate a blurb (one on the main page is best, if available) that contains a listing of upcoming classes. The blurb will most likely follow a pattern similar to the following:
<@s.getCourseEvents var="upcomingCourseEvents" maxResults=0>
<#list upcomingCourseEvents as courseEvent>
... //Formatting/presentation of data
Step 2: Adjust the blurb
The following are examples that can be inserted into the markup of blurbs.
This following code should go immediately after the <#list upcomingCourseEvents as courseEvent> line.
The following code is an example of a course link that uses the courses preferred name as a summary, marked up with microdata. Items to note are the itemprop="url" positioned after the link URL, and the itemprop="summary" attached to a span containing the course name.
And that's it! This implementation covers the four data items that must be marked up for an event to be shown as a rich snippet, including the summary, URL, location and startDate, but there are many more fields that can be added to your rich snippet. These properties, along with a basic implementation guide can be found at the Google Rich Snippet Event Guidelines.
Step 3: Testing
Marking up the four fields as shown above should yield a subtext under the Google result for your Learndot instance showing upcoming Instructor Led Training in a format similar to the below: