Using microformats with eZ Publish

400 views

Published on

A quick look at leveraging the hCalendar Microformat with eZ Publish

From the eZ Americas Winter Gathering (February 2013) - Fort Myers, FL

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
400
On SlideShare
0
From Embeds
0
Number of Embeds
44
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Using microformats with eZ Publish

  1. 1. Using Microformats with eZ Publish eZ Partner Unconference - 02.06.2013Duffy Walsh - leche.is
  2. 2. What are microformats? ● Simple, Human-readable, open "Like the movement towards a semantic web its an attempt to do something with structured data on the web better than what [is] already out there."http://microformats.org/
  3. 3. What are microformats?There are a number of specifications and drafts:Specifications● hCard - contacts details● hCalendar - events detailsDrafts● geo - locations details● hRecipe - recipes detailshttp://microformats.org/wiki/Main_Page
  4. 4. How can Microformatsspecifically be used with eZPublish?Pave the cowpaths - "look where the paths arealready being formed by behavior and thenformalize them"Create a format to fit current needs, widespreadapplicationshttp://designingsocialinterfaces.com/patterns/Pave_the_Cowpaths
  5. 5. Our specific example:Brian Suda created “a BETA implementationof an XSLT file to transform hCalendarencoded XHTML file into the correspondingiCalendar file” - this is x2vhttp://microformats.org/wiki/x2vHe has also created a cheat sheet of elementattributes / valueshttp://suda.co.uk/projects/microformats/cheatsheet/
  6. 6. A quick lookSaving you writing .ics format in the case ofhCalendarhttp://microformats.org/wiki/hcalendar
  7. 7. More good newsThere are also hosted solutions for the XSLtransformation working as a service. This use ofx2v is h2vx, which has services for hCard andhCalendar stylesheets created by Tantek Çelik.http://h2vx.com/http://h2vx.com/ics/
  8. 8. eZ Publish ApproachWe used a fullCalendar.js implementation andsome custom classes, but this only displayedmonth by month at its largest interval.So nothing novel here, we used a blank layoutto output all events of a specific type, andview_parameters to let easy know whichevent types we were looking for.
  9. 9. eZ Publish ApproachSo it’s as easy as:● use easy to populate specific elements with the cheat sheet-provided attributes and values● provide a link to submit your desired output to an open source hosted transformation service (perhaps h2vx)● give your users some basic instructions on how to subscribe via their preferred calendar software
  10. 10. Not quite as easy as wethought, but still easy :)● h2vx robots.txt prevents subscription in Google Reader, so subscription via gCal does not work● Fortunately, its easy enough to grab a copy of the project out of github, host it and allow their reader
  11. 11. Questions and Thoughts● Adverse effects of not blocking Google crawlers● A better solution than a blank layout

×