Hi,
thanks for your post, and sorry for the trouble.
Yes! On those individual pages, just add another parameter to the Shortcode, like
[table id=123 filter="..." use_datatables=false /]
(Alternatively, and maybe quicker: Uncheck the “Use DataTables” checkbox on the table’s “Edit” screen, and then, on the pages where you want the JS features, use the use_datatables Shortcode parameter, but with a value of true).
Regards,
Tobias
I’m sorry but are you saying “…” does this? If not, can you list the code? I’ve seen that response in another thread and I didn’t know then either. Sorry if it should be obvious :/
Hi,
no, the ... is the placeholder for your filtering term. I assume that you are using the TablePress Row Filter Extension, right?
The use_datatables parameter (with a value of false or true) is what then decides whether the search box is visible.
Regards,
Tobias
Yep, I see that, but if I want the search box not to show on certain pages using the short code, I still don’t know what to use. I get you are saying insert my code in place if …, but I don’t know what to use.
filter=“…” doesn’t tell me what code. Sorry I know you deal with it every day…
Hi,
ok, let’s take a step back here 🙂
What are you currently using as the Shortcode? Are you using the TablePress Row Filtering Extension? Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!
Regards,
Tobias
Hello. The page is not live nor for public, so ill explain again, and then paste the code.
1. I have a table with an id=10
2. That table has 100s of rows
3. I am creating single pages for each row, and pulling that corresponding row onto each page while using your filter plugin, thus the only row shown is the one the filter calls for, yet I only have to update and maintain one table
4. My only issue is adding the final piece of the code that removes the ‘search box’ on these single pages.
5. Note: I dont want to remove the search box all together in case i want to show it on a page that has all of the table
Code used:
[table id=10 filter=”john-stevens” /]
(so, as you can see, only rows with “john-stevens” will show, and i just want to remove the search box, but the explanation of “…” didn’t help my simple brain, as I still didn’t know what to insert 🙂
Thanks so much for the help.
Hi,
well, there you have it 🙂
... needs to be replaced with john-stevens. 🙂
So, using
[table id=10 filter="john-stevens" use_datatables=false /]
as the Shortcode will give you a single row result without the filtering text field.
Alternatively (to save work), keep using the current Shortcodes and instead uncheck the “Use DataTables” checkbox. Then, initially, all pages will be without the search field. To turn it on again on certain pages, add use_datatables=true there.
Regards,
Tobias
Thanks a lot. Yep, I had the john-stevens part in there already, I thought I explained that better in the original first post, sorry about that. All i needed was the part to hide the ‘search bar’, which sounds like ‘use_datatables=false’ is what does that? Thanks so much, adding that seems to be hiding the ‘search’ box now.
Hi,
yes, exactly 🙂
Best wishes,
Tobias
P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!
Hi,
no problem, you are very welcome! 🙂 Good to hear that this helped!
Best wishes,
Tobias