[uf-discuss] hreview - Multiple reviews for one item

Brian Suda brian.suda at gmail.com
Sun Feb 11 07:04:49 PST 2007


On 2/11/07, Andy Bourassa <andy.bourassa at gmail.com> wrote:
> Excuse me if this has been brought up in the past but...
>
> Is there a strong need and/or feasible way to have an XHTML document
> with a single item listing that is separated from a multitude of
> reviews of that item elsewhere on the page?
>
> Example: cork'd, epinions, yahoo tech - list the item (a product in
> this case) being reviewed at the top of the page, and then list a
> handful of reviews lower on the page.
>
> It seems the current solution is to simply 'hide' this extra data in
> every hreview using CSS display: none or some negative pixel offset.

--- you don't have to hide the data or repeat it at all. You can use
the include pattern[1] to reference a section of the page and pull the
data from there.

You can write the product name and various bits of information, then
in each hReview reference back to it.

The Yahoo! Tech site does just that:

This is in each review
<a href="#prodname" class="include microformatdetail">

That refers back to;
<h2 class="ytprodh2">
<a href="..."  class="rescentlink">Cell Phones</a>: <strong
class="item fn" id="prodname">RIM BlackBerry Pearl
8100</strong>...</h2>

-brian

[1] - http://microformats.org/wiki/include-pattern

-- 
brian suda
http://suda.co.uk


More information about the microformats-discuss mailing list