[uf-discuss] [hReview] Excerpt in blog post

Brian Suda brian.suda at gmail.com
Sun Feb 25 05:20:54 PST 2007


On 2/25/07, Riddle <riddlu at gmail.com> wrote:
> ...
> So, I thought about following construction. On main page:
>
> ==========================
>
> <div class="hreview">
>         <div class="description">
>                 <img src="poster.jpg" class="photo" alt="Poster of..."/>
>                 <p>Short text.</p>
>         </div>
>         <div><a href="http://blog.com/entry/#review-1" class="include"></a></div>
> </div>

---- the include pattern will only work within the same page, i think
you are attempting to include a source NOT on the same page. Also, FN
is required, so you would also need atleast a class="item"/class="fn",
which is also a good place to add the class="photo"

> ==========================
>
> On entry page:
>
> ==========================
>
> <div class="hreview">
>         <div class="description">
>                 <img src="poster.jpg" class="photo" alt="Poster of..."/>
>                 <p>Short text.</p>
>         </div>
>         <div><a href="http://blog.com/entry/#review-1" class="include"></a></div>
> </div>
>
> <div class="hreview" id="review-1">
>         <div class="item">
>                 <a lang="en" class="url fn" href="http://www.imdb.com/title/tt0455590/">
>                         The Last King of Scotland (<span lang="pl">...</span>)
>                 </a>
>         </div>
>         <div class="description">
>                 <p>
>                         Review text.
>                 </p>
>         </div>
>         <abbr class="dtreviewed" title="20070225T1034">25 Feb 2007</abbr> by
>         <span class="reviewer vcard">
>                 <span class="fn">riddle</span>
>         </span>
>         <div class="rating">Rating: <span class="value">4</span> / <span
> class="best">5</span></div>
> </div>
>
> ==========================
>
> Is my code ok?

--- i'm not sure what you are trying to accomplish on the entry page,
you have the short text AND the full text. Is there a reason to not
just have the full text?

> I can remove first part (excerpt) from entry page, but is it necessary?

you don't need the excerpt on the entry page, infact it ends up
causing more problems because now you have 2 descriptions, one in the
short-text, then again in the full-text you are including.


> If it is necessary to remove it, can I duplicate poster photo in
> second part of hreview?

--- if you are removing the short-text entry, then you could move the
poster into the main review and it would not be duplicating anything.

--- i hope this helps, you will have issues with marking-up a partical
review on the main-page because you can not including data across
pages. This leaves you with a few options...
1) don't try to include the data, just make a minimun hReview on the homepage.
2) don't mark-it-up on the homepage at all, just the entry pages.
3) add more data to the homepage, so it is a full review.

-brian

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


More information about the microformats-discuss mailing list