Skip Navigation

[Resolved] Collapsible treview for taxonomy

This support ticket is created 7 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 1 reply, has 2 voices.

Last updated by Christian Cox 7 years ago.

Assisted by: Christian Cox.

Author
Posts
#597382
Collapsible-Tree-View-Checkboxes-jQuery-hummingbird.jpg

Hi,

I have a very long list of taxonomy and I would like to shorten it. Do you have any recommendation for collapsible multiple checkboxes? I have found a solution which suites my purposes, but I am afraid that the implementation would not be so easy: hidden link

#597466

I don't have any good recommendations for custom collapsible trees for taxonomy options in a CRED form, unfortunately, and our support policy says we are not able to provide support for custom interface modifications like this. Here's some information you should consider as you evaluate plugins:
- In a standard taxonomy CRED field, there is no API available to filter the markup of each term or hierarchical group. So if your plugin requires a specific markup format or CSS class structure, you must apply that with JS before initializing the tree.
- If the names or values of the inputs are changed by your tree plugin, it may interfere with the CRED form submission. In this case, you would have to use the CRED API to capture those input values and apply them to the post manually.
- To initialize a jQuery plugin using a DOM element in a CRED form, you should bind your callback to the window "load" event:

jQuery(window).bind("load", function() {
   jQuery( ".your-selector").initializeTree();
});

Obviously initializeTree is just an example here, your chosen tree plugin will have a different initialization process.