Sorry to disappoint you but unfortunately the cascade filtering is working on "change" of the filters and it is not possible to pass the value for the filter in the URL so the other columns will be filtered as well depending on chosen cascade logic.
The logic and the development of the cascade filtering is that the filter needs to trigger a change of the data in the filter, so it can not be passed via URL.
Probably this can be achieved with some Javascript running on the page but unfortunately writing the scripts is something that is not covered with the included support of the product.
Maybe the workaround would be to write a script that on window load, or document ready, get the desired data from the URL and then change the statement in the filter.
regarding the workaround you suggested, is there some API in the plugin Javascript frontend code?
Or, would you please suggest some part of the plugin Javascript code that will be stable in time?
If we implement the workaround we would like to not have it broken possibly by a future plugin update.
We also opened another ticket, #3041632, which is very important to us: we hoped to "pre-select" date ranges with URL parameters, then we noticed the other issue: would you please reply also to the other ticket?
wpDataTables doesn't have any APIs yet. We'll most likely include it in one of our future updates, but there's no ETA on that yet.
I wouldn't advise modifying any Javascript files of the plugin, but instead create a custom JS that would be added to the page in order to perform this.
You can take a look at our filters and hooks and see if that helps. When you add the code to either the page, or functions.php file of your theme (or child theme), plugin's updates won't mess it up since you'd be using hooks that are a part of the code already.
Hello,
may I know how you resolv the ticket #1867446
I'm having the same issue.
Best Regards
Thank you
Francesco
Hello Francesco.
Sorry to disappoint you but unfortunately the cascade filtering is working on "change" of the filters and it is not possible to pass the value for the filter in the URL so the other columns will be filtered as well depending on chosen cascade logic.
The logic and the development of the cascade filtering is that the filter needs to trigger a change of the data in the filter, so it can not be passed via URL.
Probably this can be achieved with some Javascript running on the page but unfortunately writing the scripts is something that is not covered with the included support of the product.
Maybe the workaround would be to write a script that on window load, or document ready, get the desired data from the URL and then change the statement in the filter.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hello Aleksandar,
regarding the workaround you suggested, is there some API in the plugin Javascript frontend code?
Or, would you please suggest some part of the plugin Javascript code that will be stable in time?
If we implement the workaround we would like to not have it broken possibly by a future plugin update.
We also opened another ticket, #3041632, which is very important to us: we hoped to "pre-select" date ranges with URL parameters, then we noticed the other issue: would you please reply also to the other ticket?
Many thanks and best regards.
Hi again Francesco
wpDataTables doesn't have any APIs yet. We'll most likely include it in one of our future updates, but there's no ETA on that yet.
I wouldn't advise modifying any Javascript files of the plugin, but instead create a custom JS that would be added to the page in order to perform this.
You can take a look at our filters and hooks and see if that helps. When you add the code to either the page, or functions.php file of your theme (or child theme), plugin's updates won't mess it up since you'd be using hooks that are a part of the code already.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables