[uf-discuss] hReview feedback

Phillip Pearson pp at myelin.co.nz
Mon Jan 23 18:17:13 PST 2006


>> review site is a genre-only site (also fairly common), and I needed to
>> have a field stating the "degree of cyberpunk visuals" and the
>> "Correlation to cyberpunk themes."  I could just as easily imagine  a 
>> T&A
>> rating field like some of the bad movie sites use, or "number of  
>> deaths"
>> or "blood spurt rating" like some of the horror review sites use.   I 
>> guess
>> the point here is that if you don't already have them (and again,  
>> forgive
>> my ignorance, as I only know the wordpress plugin and haven't  
>> examined the
>> XML spec at all), you need some generic user-defined fields.  If  
>> not, they
>> will be created anyways.
>
>
> I don't know how the Structured Blogging wordpress plugin does this  
> (or whether it allow it at all), but in hReview you can do tagged  
> ratings. So, in your example:
>
> <a href="http://wikipedia.org/wiki/CyberPunk_Visuals">
> Degree of CyberPunk Visuals:
>   <span class="rating">15</span>/<span class="best">30</span>
> </a>


sfam, you should be able to do that in the SB plugins with XML like this 
in the <display media="html"> section:

<a href="http://wikipedia.org/wiki/CyberPunk_Visuals">
Degree of CyberPunk Visuals:
  <field content="/path/to/rating/element" type="rating"/>
</a>

You can create as many ratings as you like.  Some of the SB templates (I 
think review-cafe.xml and review-hotel.xml, at least) have multiple 
ratings, although none of them are tagged properly yet like in the example.

Here's what the code in review-cafe looks like at the moment:

    <if content="foodrating"><div><b>Food rating</b>: <field 
content="foodrating" type="rating"/></div></if>

I guess this should become:

    <if content="foodrating"><div><a 
href="http://structuredblogging.org/ratings/food" rel="tag"><b>Food 
rating</b>: <field content="foodrating" type="rating"/></a></div></if>

Cheers,
Phil


More information about the microformats-discuss mailing list