Given an Exhibit 3 site residing at baz.com/ex.html containing two facets with id="foo" & id="bar" respectively, what is the simplest way to make baz.com/ex.html?foo=yellow&bar=blue filter the Exhibit down to only yellow foos and blue bars on load?
--
You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simile-widget...@googlegroups.com.
To post to this group, send email to simile-...@googlegroups.com.
Visit this group at http://groups.google.com/group/simile-widgets.
For more options, visit https://groups.google.com/d/optout.
Thanks for your help as ever, David. To put to bed my original question, there's not an easy way to set facet filters from URL queries in Exhibit 3, then? I know about setting data-ex-query-param-name="foo" on a facet of data-ex-facet-class="TextSearch" to allow you to query 'bar' with example.com/exhibit.html?foo=bar, but otherwise there's no (easy) answer? Replicating the type of filtering on show at http://travismccauley.info/shalu/?age=40%20to%2049&year=1844 is not doable under Exhibit 3?
Further to this: adding "?persist=false" to window.Exhibit_parameters gives me the desired behaviour of being able to load a ur with appended query string to filter facets, click 'Reset All Filters', then reload the same url with query to display filtered facets again. (Exhibit 3.1.2-rc1.)
there is a data-ex-selection attribute that you can set on a
facet element to have it init with certain selections. do you
need to specify the selection in the url?
--
You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simile-widget...@googlegroups.com.
To post to this group, send email to simile-...@googlegroups.com.
Visit this group at https://groups.google.com/group/simile-widgets.
there is a data-ex-selection attribute that you can set on a facet element to have it init with certain selections. do you need to specify the selection in the url?
On 9/19/2016 2:06 PM, Jared wrote:
Any updates on how to accomplish this?
I would love to be able to simply pass a parameter like ?color=red to apply a facet on load. I understand that there is the bookmarking functionality but that hash is really ugly and contains way too much information as its just the hashed version of Exhibit.History.getState().
On Sunday, November 15, 2015 at 5:25:01 AM UTC-5, Andrea Borruso wrote:Hi Tully,
On Saturday, 31 October 2015 00:53:20 UTC+1, Tully Hansen wrote:Further to this: adding "?persist=false" to window.Exhibit_parameters gives me the desired behaviour of being able to load a ur with appended query string to filter facets, click 'Reset All Filters', then reload the same url with query to display filtered facets again. (Exhibit 3.1.2-rc1.)
I'm very interested. Do you have an example website in which I can see all in action?
Thank you
--
You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simile-widgets+unsubscribe@googlegroups.com.
To post to this group, send email to simile-widgets@googlegroups.com.
Visit this group at https://groups.google.com/group/simile-widgets.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "SIMILE Widgets" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/simile-widgets/ILR1uLaPljQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to simile-widgets+unsubscribe@googlegroups.com.
To post to this group, send email to simile-widgets@googlegroups.com.
Visit this group at https://groups.google.com/group/simile-widgets.
For more options, visit https://groups.google.com/d/optout.
facets don't need to be visible for filtering to work. setting style=display:none is fine
you don't specify an array for data-ex-selection, but you can
specify a list. i forget whether you separate by commas or
semicolons
To unsubscribe from this group and stop receiving emails from it, send an email to simile-widget...@googlegroups.com.
To post to this group, send email to simile-...@googlegroups.com.
facets don't need to be visible for filtering to work. setting style=display:none is fine
you don't specify an array for data-ex-selection, but you can specify a list. i forget whether you separate by commas or semicolons
On 9/19/2016 3:00 PM, Jared Szechy wrote:
Yes, I would like to use a url parameter.
Worst case I can add data-ex-selection dynamically from a parameter, however I would ideally not like to have the facets visible in this view.
Also, I've noticed that data-ex-selection attribute does not seem to work on arrays.
On Mon, Sep 19, 2016 at 2:42 PM, David Karger <kar...@mit.edu> wrote:
there is a data-ex-selection attribute that you can set on a facet element to have it init with certain selections. do you need to specify the selection in the url?
On 9/19/2016 2:06 PM, Jared wrote:
Any updates on how to accomplish this?
I would love to be able to simply pass a parameter like ?color=red to apply a facet on load. I understand that there is the bookmarking functionality but that hash is really ugly and contains way too much information as its just the hashed version of Exhibit.History.getState().
On Sunday, November 15, 2015 at 5:25:01 AM UTC-5, Andrea Borruso wrote:Hi Tully,
On Saturday, 31 October 2015 00:53:20 UTC+1, Tully Hansen wrote:Further to this: adding "?persist=false" to window.Exhibit_parameters gives me the desired behaviour of being able to load a ur with appended query string to filter facets, click 'Reset All Filters', then reload the same url with query to display filtered facets again. (Exhibit 3.1.2-rc1.)
I'm very interested. Do you have an example website in which I can see all in action?
Thank you
--
You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simile-widgets+unsubscribe@googlegroups.com.
To post to this group, send email to simile-...@googlegroups.com.
Visit this group at https://groups.google.com/group/simile-widgets.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "SIMILE Widgets" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/simile-widgets/ILR1uLaPljQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to simile-widgets+unsubscribe@googlegroups.com.
To post to this group, send email to simile-...@googlegroups.com.
Visit this group at https://groups.google.com/group/simile-widgets.
For more options, visit https://groups.google.com/d/optout.
--
--
You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simile-widgets+unsubscribe@googlegroups.com.
To post to this group, send email to simile-widgets@googlegroups.com.
Visit this group at https://groups.google.com/group/simile-widgets.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "SIMILE Widgets" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/simile-widgets/ILR1uLaPljQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to simile-widgets+unsubscribe@googlegroups.com.
To post to this group, send email to simile-widgets@googlegroups.com.
Visit this group at https://groups.google.com/group/simile-widgets.
For more options, visit https://groups.google.com/d/optout.
you can see it working fine in this (tweaked) example:
http://people.csail.mit.edu/karger/ExhibitK/demos/presidents/presidents.html
To unsubscribe from this group and stop receiving emails from it, send an email to simile-widget...@googlegroups.com.
To post to this group, send email to simile-widgets@googlegroups.com.
Visit this group at https://groups.google.com/group/simile-widgets.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "SIMILE Widgets" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/simile-widgets/ILR1uLaPljQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to simile-widgets+unsubscribe@googlegroups.com.
To post to this group, send email to simile-widgets@googlegroups.com.
Visit this group at https://groups.google.com/group/simile-widgets.
For more options, visit https://groups.google.com/d/optout.
I bet you're running into problems with exhibit's "persistence"
feature that sets facet values to be the same as they were the
last time you visited the page. This may have been a bad idea.
try adding ?persist=false to the end of your url.
To post to this group, send email to simile-widgets@googlegroups.com.
Visit this group at https://groups.google.com/group/simile-widgets.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simile-widgets+unsubscribe@googlegroups.com.
To post to this group, send email to simile-widgets@googlegroups.com.
Visit this group at https://groups.google.com/group/simile-widgets.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "SIMILE Widgets" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/simile-widgets/ILR1uLaPljQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to simile-widgets+unsubscribe@googlegroups.com.
To post to this group, send email to simile-widgets@googlegroups.com.
Visit this group at https://groups.google.com/group/simile-widgets.
For more options, visit https://groups.google.com/d/optout.
unfortunately not. there was a decision made some years ago that
exhibit should persist its state when you reload a page. I'm
skeptical. so i added the persist=false option to override. but
the url is the only way to activate it right now.
To unsubscribe from this group and stop receiving emails from it, send an email to simile-widget...@googlegroups.com.
it should really only be a problem during development, since
people visiting your page for the first time will get whatever
data-ex-expression you set permanently in the page.