Gravatar for dipsindol@gmail.com

Question by DEEPTHI KATTA, Nov 23, 2016 3:23 PM

Coveo Exclude Components on Tabs not working properly

Hi, I implemented exclude components based on tab selected. https://developers.coveo.com/display/public/SitecoreV4/Link+a+Coveo+Tab+Component+to+other+components

It seems like on load (initial) it does hide the components from the tab I mentioned to not show. all is well. But, when I click on the other tab(inactive) from UI, it starts showing up all the hidden tabs, from this point it keeps showing all hidden components regardless of the tab I am in.

What can I do here to check to make sure either from UI or on page load, only components that I need to be visible show up? I ensured that I do have data source hooked up from individual facet components and ensured those are picked properly from Exclude Component section of the tab. Coveo version - October on all components Sitecore version - 8.1, update 2

Gravatar for flguillemette@coveo.com

Comment by François Lachance-Guillemette, Nov 23, 2016 5:01 PM

Any errors in the console?

I have some weird behavior when hiding tabs using tab, I don't think they are intended to be used that way. What behavior are you trying to accomplish?

FLG

Gravatar for dipsindol@gmail.com

Comment by DEEPTHI KATTA, Nov 29, 2016 2:30 PM

Nope no errors on console. It just does not hide components that belong/exclude based on Tab. The goal - "On Tab A, I want a set of facets to be shown and a set of facets (sliders)that should be hiiden On Tab B, I want a set of facets to be shown and a set of facets(sliders) that should be hidden"

I was thinking this was perfect for exclude component functionality. Am I assuming it incorrectly?

Gravatar for dipsindol@gmail.com

Comment by DEEPTHI KATTA, Nov 29, 2016 7:05 PM

I think I found the issue - we remove the below line from CustomCoveoSearchResources

May be the hide components functionality or partial bit of it is in here once I add this it works we obviously have custom css and would not like to add this css in the references. How can we make this exclusion work with out adding this link?

1 Reply
Gravatar for flguillemette@coveo.com

Answer by François Lachance-Guillemette, Nov 30, 2016 8:06 AM

First, just to be clear, your use case is the exact use case for the "Exclude components" properties, so no worries about that :)

However, I think CoveoFullSearchNewDesign should not be removed as it contains many styles required for interactions in the coveo-search-ui framework. It is instead recommended to override the styles coming from it.

Gravatar for dipsindol@gmail.com

Comment by DEEPTHI KATTA, Nov 30, 2016 7:29 PM

We added back what we need at this time. Until more things are uncovered to avoid re-work from FEE team

Ask a question