Can anyone shed some light on this please?

Is it currently possible to show the whole hierarchy in a taxonomy tree facet instead of just the highest levels before you have selected any filters? I'm stepping through the code to find why it only shows the highest level, perhaps the error above has something to do with it?

Comments

cpliakas’s picture

Priority: Normal » Major

Just for some clarification, the filters alter the facets in some way. The filter that you are referencing, the "Current depth" filter, does exactly what you state above. It lists only the facets that are in the current depth of the hierarchy and not the whole tree, which is the behavior by default.

The watchdog error is a bit disconcerting and I am seeing it locally as well. Let me investigate a bit and I'll report back.

Thanks for the post,
Chris

cpliakas’s picture

Clarification... the default behavior is to list the whole tree. If you select the "Current depth" filter, then it only displays the current level of the hierarchy.

cpliakas’s picture

Priority: Major » Critical
StatusFileSize
new805 bytes

Stupid mistake on my part. See the attached patch for why watchdog errors are occurring. Apply the patch, make sure caches are cleared, make sure there are no filters selected for the taxonomy facet, and then see if the unwanted behavior still persists.

Thanks,
Chris

cpliakas’s picture

Status: Active » Needs review

Marking as needs review...

adam clarey’s picture

The error has stopped, but how do i now show the full tree instead of just the top level?

cpliakas’s picture

StatusFileSize
new101.16 KB

Can you confirm that the "Only show items in the current level of the hierarchy" filter isn't selected? See the attached screenshot for how to do this.

adam clarey’s picture

yes ive definitely unchecked that option.

ill try uninstalling/reinstalling to see if that helps

cpliakas’s picture

Thanks. If you could send a screenshot of of what you are seeing, that would be great. Also, I am assuming you are using Facet API with Apache Solr Search Integration? Which version of the modules are you using?

Thanks,
Chris

adam clarey’s picture

StatusFileSize
new4.59 KB
new4.02 KB

collpased.png shows how the filters look when the page is first loaded without any filters set.

expanded.png shows that there are 3 layers in the tree, i would like to see all children in the tree without selecting any filters.

Ive tried uninstalling then reinstalling but still nothing.

Im using apachesolr 7 1.0-beta8 and facet api 7 1.0-beta5

cpliakas’s picture

Status: Needs review » Fixed

I see what you mean now. Based on what you posted I am thinking that you want an option to show the entire tree expanded by default without having to drill down. This isn't a bug, as the widget is working as designed. There are enough integration points where you could add this with custom code, so this is really a feature request. Since the issue is different than the title, I am applying the patch in #3 and marking this as fixed and am opening a separate issue at #1250416: Add an option to show hierarchies as expanded for the feature request.

Thanks for the clarification,
Chris

cpliakas’s picture

Patch added in commit ae8fcee.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.