[uf-discuss] in hcalendar, associating single date with multiple events?

Brian Suda brian.suda at gmail.com
Fri Oct 20 06:55:16 PDT 2006


I had a look at your mark-up, and normally you would use the
include-pattern to reference data elsewhere on a page, but your have
days in one place and times in another, so you can't really split that
with the include-pattern.

Lets see what we can do with this example from the page:
       <h2>Friday, October 20, 2006</h2>
		<p>
			<b>  12:00 PM - 1:00 PM Lecture &mdash; Christopher Columbus</b><br />
			<a href="rooms/3-madson.jpg" target="_blank">Pickford Theater</a>,
			3rd floor 			James Madison building 			Scholar Peter Dickson
presents a talk on "Decoding Columbus: Evidence Beyond DNA" in a
program sponsored by the Hispanic Division.			Contact: (202) 707-2013
		</p>


       <h2>Friday, October 20, 2006</h2>
		<p class="vevent">
			<b><abbr title="2006-10-20T12:00:00-0400" class="dtstart">12:00
PM</abbr> - <abbr title="2006-10-20T13:00:00-0400" class="dtend">1:00
PM</abbr> <span class="summary">Lecture &mdash; Christopher
Columbus</span></b><br />
			<span class="location">
			<a href="rooms/3-madson.jpg" target="_blank">Pickford Theater</a>,
			3rd floor 			James Madison building
			</span>
			<span class="description">
 			Scholar Peter Dickson presents a talk on "Decoding Columbus:
Evidence Beyond DNA" in a program sponsored by the Hispanic
Division.			Contact: (202) 707-2013
			</span>
		</p>

It is also best-practic to markup the venue with an hCard. That is
pretty straight forward, so i'll leave that up to you.

Normally, for events that are all day (e.g. no time aspect) the
include pattern would work just fine.

<h2 id="fri-oct"><abbr class="dtstart" title="2006-10-20">Friday,
October 20, 2006</abbr></h2>
<p class="vevent">Some all day event ... <a href="#fri-oct" class="include"/>
<!-- normal hCal here -->
...
</p>

Some folks have are also concerned with the tooltip showing the ISO
date, this can be solved because the "inner-most" element's title
attribute is used as the tooltip.

So you can do:
<h2 id="fri-oct"><abbr class="dtstart" title="2006-10-20"><span
title="tooltip text here">Friday, October 20, 2006</span></abbr></h2>

and that would solve any display issues.

-brian

On 10/19/06, Justin Thorp <juth at loc.gov> wrote:
> Hey guys,
>
> If I was trying to mark up some events with hCalendar, the date was in the h2, and there were multiple events under the h2, how would I mark it up?
>
> Like here:
> http://www.loc.gov/loc/events/index.php
>
> How do I get the one date to point to multiple events?
>
> Cheers,
> Justin Thorp
>
>
> ******************
> Justin Thorp
> Web Services - Office of Strategic Initiatives
> Library of Congress
> e - juth at loc.gov
> p - 202/707-9541
>
> _______________________________________________
> microformats-discuss mailing list
> microformats-discuss at microformats.org
> http://microformats.org/mailman/listinfo/microformats-discuss
>


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


More information about the microformats-discuss mailing list