On 3/8/07, Oliver Cole <[EMAIL PROTECTED]> wrote:
> [ The completed email... ]
>
> Thanks for your reply.
>
> On Wed, 2007-03-07 at 20:18 -0500, David Huynh wrote:
> > > 4) Is there any way to modify facets to work on numbers, eg 'Cost less
> > > than 35' instead of grouping?
> > >
> > Yup... coming up in 2.0, as seen in (Ratings facet):
> >
> > http://people.csail.mit.edu/dfhuynh/projects/video-games/2006top100games2.htm
>
> This is a killer feature for me, so I've tried migrating to 2.0, as per
> [EMAIL PROTECTED] ("Exhibit 2.0 refactoring", Tue, 27 Feb
> 2007).
>
> http://onesteprevolution.com/ex/index2.html
>
> There appear to be two problems with this:
>
> 1) Where has Exhibit.create(null,
> null).loadGoogleSpreadsheetsData("uri") gone?

Data importers have moved to Exhibit.JSONPImporter, but you no longer
need to write code to orchestrate the data loading, should you not
really want to. In Exhibit 2.0, you just add a link tag:

<link rel="exhibit/data" type="application/jsonp"
ex:converter="GoogleSpreadsheets"
href="http://spreadsheets.google.com/feeds/list/o04539655657404197317.1260515191289839565/od6/public/basic";
/>

to the head of the document. If you do not provide an onload handler,
Exhibit will scour the head tag for data links, load them all and
initialize your exhibit for you.

> 2) Given that I (hopefully) have it loading from Google, do I need am
> <div ex:role="exhibit-collection" ex:itemTypes="President"></div>, and
> if so, what do I replace President with?

Good question. If you do not provide a {type} column of your own
(which you could, if you like, and then use the value you filled that
column with), items will not be granted any particular type (i e
"President", as in the example). I'd guess that <div
ex:role="exhibit-collection"></div> might be enough, but I'm really
out of my depth there. Try it out? Or wait for word from David Huynh.
:-)

> > Can you try
> >     <span ex:select=".property-foo">
> > ...
>
> Will this syntax still work under 2.0?

It has at least not been changed so far, nor been suggested in need of changing.

-- 
 / Johan Sundström, http://ecmanaut.blogspot.com/

_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to