Hi Carlos,
Yes and No.
Yes: You can define a "brand" facet and presets its selection:
<div ex:role="facet" ex:expression=".brand" ex:selection="General
Mill"></div>
To hide the facet, set its style attribute as follows:
style="display: none"
It's also possible to write a bit of Javascript to do what the facet
does and not have the facet on the page.
No: In Exhibit, all computations happen on the client side. It means
that the whole data file needs to be loaded anyway. This doesn't matter
if the data file is small enough.
David
Carlos A. Iglesias wrote:
> Hi,
>
> Is it possible in some way to filter the data included in an exhibit?
>
> For example, while including the json in the cereals example
> (http://simile.mit.edu/exhibit/examples/cereals/cereal-characters.html)
> , including only the products of the brand 'General Mill' in a page
> 'generalMill.html'.
>
> The application of this is for a product catalogue, where you want to
> make a different page depending on the product category (with some
> explanation of the applications of this category), but using the same
> 'json database'.
>
> Thanks in advance,
> Carlos A.
> _______________________________________________
> General mailing list
> [email protected]
> http://simile.mit.edu/mailman/listinfo/general
>
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general