- This topic has 1 reply, 2 voices, and was last updated 10 years, 4 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Combo Box not filtering all Cats
Hi,
I have a combo box set up for categories which are Hierarchical, with child categories three deep.
When typing in to the combo box not all cats are showing up.
An example can be seen here: http://overlandsphere.com/
Can any one help fix this?
Hey Martin
I’m afraid the issue is kindof with the JS library we are using for the comboboxes – https://harvesthq.github.io/chosen/
Basically, S&F will indent children so they look hierarchical – this is done the same way as WordPress does it – with non breaking spaces – unfortunately this means that chosen to find the child categories as they start with a space – try adding in a few spaces and start typing – you will see that your children are found.
The issue here really is, how to remove the spaces (so it becomes easily searchable) and style the children as children (ie with indentation).
I’m looking in to this still, and considering moving over to another library – however none of the JS libraries I’ve found for anything like this have good support for anything hierarchical.
I guess you would have to use a regular select, and potentially roll your own for now until I find a better solution.
Thanks