Gravatar for shirazi@rdacorp.com

Question by aga, Sep 29, 2015 4:06 PM

Documentation for Facet.dependsOn Property

Hi,

Im looking for more documentation and examples for the new dependsOn property for the Facet.

https://developers.coveo.com/display/public/JsSearchV1/Facet+Component

Thanks

1 Reply
Gravatar for mlaporte@coveo.com

Answer by Martin Laporte, Sep 30, 2015 1:02 PM

Right now we only have the page you mentionned. Can you explain a little what is unclear? Then I can update the topic as appropriate…

Gravatar for shirazi@rdacorp.com

Comment by aga, Sep 30, 2015 1:07 PM

Im using Coveo for Sitecore and I want some facets to be displayed only when some values in a different facet are clicked. In other words, one of the facet is dependent of the selected value of another facet. From the one line description of that property, I wasnt able to figure out if this would serve the purpose. Do you know how can this be done?

Gravatar for mlaporte@coveo.com

Comment by Martin Laporte, Sep 30, 2015 1:10 PM

Yes, that's exactly what it does. So you need to put in the name of the field on which the "parent" facet is, well, faceting.

Gravatar for jflheureux@coveo.com

Comment by Jean-François L'Heureux, Oct 5, 2015 10:11 AM

Hi Aga,

Coveo for Sitecore uses the version 0.9 of the Coveo JavaScript Search Framework so you should refer to the documentation in the "JsSearch" documentation space: https://developers.coveo.com/display/JsSearch

The facet dependsOn property is available only since the June 2015 release of the Coveo JavaScript Search Framework (JsSearchLib version 0.9.1287.24). The first Coveo for Sitecore release to include that property is the September 2015 one.

So you need at least the September 2015 release (3.0.1116) of Coveo for Sitecore to use this option of the Coveo JavaScript Search Framework.

Ask a question