Ticket #13078 (confirmed Feature Request)
Add support for HTML 5 microdata
Reported by: | keul | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 4.x |
Component: | General | Version: | 4.2 |
Keywords: | Cc: | keul |
Description
Analyzing microdata and schema.org specifications seems that Plone can easily support it.
I performed some test do make Plone Event supporting microdata (with [ schema.org format http://www.schema.org/Event]).
The needed changes to Plone code are minimal; for getting a basic support we only need a different Event view ( my example here).
changes to Plone views
The main problem: for putting into the code eventtype and eventscope attributes, I was forced to get back to an Event view that fill the "main" slot instead of the "content-core".
What is missing (outside the Plone contents view) is a way for automatically get the itemtype attribute from contents (the best way I can imagine is to call a new kind of adapter).
This feature will also make possible to easily support other formats, not only Event.
The same changes must obviously be pushed also on plone.app.event.
changes to views that lists contents
Following microdata specifications we can also have pages where more than an event is listed. Probably this needs to be done in the content listing system, recently fixed for Plone 4.2 (see #9327).
switch to ARTICLE tag for main container
This is really not needed, but probably Plone can substitute it's "main" DIV...
<div id="viewlet-above-content
...with an ARTICLE tag.
conclusion
I found those changes very simple and I can't see any drawbacks. However I can also propose a complete PLIP for this if someone gives me some feedback.