Hi Gabe,

One approach that I've found to be extremely flexible is to generate
the Exhibit JSON file (aka dataset) on-the-fly from a database.  Doing
it this way, you can do all sorts of things to subset the data,
including using the current date as a baseline (only go out 3 months
from today, only go back 2 weeks from today, etc).  In my case, I use
PHP for server side processing and MySQL for data storage.

You can see an example of this approach at:
www.thisbeautifulgame.com

Take a look at the source.  There's a lot of code in there, but the
important line is:
<!--**********load JSON data**********-->
<link href="../php/This.Beautiful.Game.Json.Generator.php"
type="application/json" rel="exhibit/data" />

The PHP code consists of a query (with appropriate 'where clause') and
a loop that formats the resultset as "Exhbit JSON".  I think that
you'll get the idea from there.

HTH,
-Mark


On Oct 7, 9:20 am, Gabe Stanek <[email protected]> wrote:
> Hello,
>
> I am interested in using Exhibit for a website application that I am
> currently working on.  I am looking to make a "Today in Art History" website
> that shows important art history events each day, by automatically updating
> from a database (or a .js file in exhibit's case).
>
> An example of a site that my site will be similar to is 
> here:http://www.wisconsinhistory.org/thisday/
>
> Is it possible to have exhibit automatically filter out data to display from
> a .js file based on the date?
>
> Thanks,
>
> --
> Gabe Stanek
>
> (413) 687-4763
> [email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en.

Reply via email to