Question

I have a facet set up thus:

<div ex:role="facet" ex:expression=".chapter" ex:facetLabel="Chapter" ex:sortMode=".count" ex:fixedOrder="1;2;3;4;5;6;7;8;9;10;11;12" ></div>

It's for filtering Chapter numbers of timeline events. How would I programmatically select one of the facet choices to filter visible timeline events? I tried simulating a click event on the anchor in the generated HTMl, and have been unable to expose anything in the API.

The end goal is to allow filtering by chapter by getting a URL param.

http://www.jamesfishwick.com/timeline/

Was it helpful?

Solution

The attribute ex:selection can be used to pre-filter items.

I was able to add the attribute (i.e. ex:selection="3") from a param with no problems.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top