[MERGE] Microformats (microdata) support for improved SEO.
authorChristophe Matthieu <chm@openerp.com>
Fri, 7 Feb 2014 11:37:21 +0000 (12:37 +0100)
committerChristophe Matthieu <chm@openerp.com>
Fri, 7 Feb 2014 11:37:21 +0000 (12:37 +0100)
Supported formats:
 - Organization
   https://support.google.com/webmasters/answer/146861?hl=en&ref_topic=1088474
   http://schema.org/Organization
 - Event
   https://support.google.com/webmasters/answer/164506?hl=en&ref_topic=1088474
   http://schema.org/Event
 - Product+Offer
   https://support.google.com/webmasters/answer/146750#offer_properties
   http://schema.org/Product
   http://schema.org/Offer

Tested with http://www.google.com/webmasters/tools/richsnippets

bzr revid: chm@openerp.com-20140207113721-klunj6bf9qp4b2cx

1  2 
addons/website_event/views/website_event.xml
addons/website_sale/views/website_sale.xml

              </div>
              <div class="row mt32 mb32">
                  <div class="col-md-9" id="middle_column">
 -                    <t t-if="not event_ids">
 -                        <div class="text-center text-muted">
 -                          <h3 class="css_editable_display">No event found</h3>
 -                          <h3 class="css_editable_hidden">There isn't available events right now, <t t-if="current_date or current_country or current_type">click <a t-attf-href="/event">here</a> to check all events or</t> click <a t-attf-href="/page/website.contactus">here</a> to contact us</h3>
 -                          <t groups="base.group_website_publisher">
 -                            <t groups="event.group_event_manager">
 -                                <p>Click on "Content" to define a new event or "Help" for more informations.</p>
 -                                <img src="/website/static/src/img/content_here.png"/>
 -                                <p>In the backend's event form contains information to customize your events: location, oranizer, tikets, registrations, etc.</p>
 -                              </t>
 -                          </t>
 -                        </div>
 -                    </t>
 +                    <div class="text-center text-muted" t-if="not event_ids">
 +                      <h1>No event found</h1>
 +                      <t groups="base.group_website_publisher">
 +                          <p groups="event.group_event_manager">Use the top menu <i>'Content'</i> to create your first event.</p>
 +                      </t>
 +                    </div>
                      <ul class="media-list">
                          <li t-foreach="event_ids" t-as="event" class="media">
-                             <div class="media-body">
+                             <div itemscope="itemscope" itemtype="http://schema.org/Event" class="media-body">
                                  <h4 class="media-heading">
-                                     <a t-att-class="event.state == 'done' and 'text-success'" t-attf-href="/event/#{ slug(event) }/#{(not event.menu_id) and 'register/' or ''}"><span t-field="event.name"> </span></a>
+                                     <a itemprop="url" t-att-class="event.state == 'done' and 'text-success'" t-attf-href="/event/#{ slug(event) }/#{(not event.menu_id) and 'register/' or ''}"><span itemprop="name" t-field="event.name"> </span></a>
                                      <small t-if="not event.website_published" class="label label-danger">not published</small>
                                  </h4>
                                  <div>