[uf-discuss] Custom Fields Microformat?

Manuel Simoni msimoni at gmail.com
Sat Nov 25 07:07:02 PST 2006

> you should certainly look into XOXO.
> http://microformats.org/wiki/xoxo

I know, I originally made a precursor to this strawman using XOXO:

However, following the Microformats process and studying the
Wordpress, Drupal/Content Construction Kit, Textpattern, and Movable
Type custom field implementations,  I found that XOXO isn't suited to
express the current behavior nicely.

Rewriting the current formats of Wordpress:
<ul class='post-meta'>
  <span class='post-meta-key'>Priority: </span>

and Drupal/CCK:
<div class="field field-type-text field-field-priority">
 <h3 class="field-label">Priority</h3>
 <div class="field-items">
  <div class="field-item">low</div>

in XOXO would be a reengineering effort for the affected communities,
whereas the hcustomfield-* classes are minimally invasive:

 <li class="hcustomfield">
  <span class="hcustomfield-name">Priority</span>:
  <span class="hcustomfield-value">low</span>

<div class="hcustomfield">
 <h3 class="hcustomfield-name">Priority</h3>
  <div class="hcustomfield-value">low</div>

For example, XOXO would force implementors to adapt a list structure,
which probably is too rigid for them. The hcustomfield-* classes let
implementors use any layout they desire, and my examples show that the
use of these three simple classes is enough to unify two major existing
implementations (Wordpress and Drupal).


Manuel Simoni

More information about the microformats-discuss mailing list