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?
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | collapsed.PNG | 4.02 KB | adam clarey |
| #9 | expanded.PNG | 4.59 KB | adam clarey |
| #6 | configure-filters.jpg | 101.16 KB | cpliakas |
| #3 | facetapi-1249210-3.patch | 805 bytes | cpliakas |
Comments
Comment #1
cpliakas commentedJust 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
Comment #2
cpliakas commentedClarification... 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.
Comment #3
cpliakas commentedStupid 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
Comment #4
cpliakas commentedMarking as needs review...
Comment #5
adam clarey commentedThe error has stopped, but how do i now show the full tree instead of just the top level?
Comment #6
cpliakas commentedCan 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.
Comment #7
adam clarey commentedyes ive definitely unchecked that option.
ill try uninstalling/reinstalling to see if that helps
Comment #8
cpliakas commentedThanks. 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
Comment #9
adam clarey commentedcollpased.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
Comment #10
cpliakas commentedI 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
Comment #11
cpliakas commentedPatch added in commit ae8fcee.