Skip Navigation

[Résolu] Collapsible treview for taxonomy

This support ticket is created Il y a 6 années et 12 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

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)

Ce sujet contient 1 réponse, a 2 voix.

Dernière mise à jour par Christian Cox Il y a 6 années et 12 mois.

Assisté par: Christian Cox.

Auteur
Publications
#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: lien caché

#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.