I want to make each value of the Name field clickable, but not the values of the Category field.
I have made the values of the Buy fields clickable by using wpdatatables_filter_string_cell to find values that are greater than 70 characters long. Only the Buy values are longer than 70 characters. However, string length for Name and Category is not unique to those columns. Fields in those columns can be the same length so wpdatatables_filter_string_cell is not something I can use for that condition. Is there a way that I can filter for a certain column? I dont see a filter called wpdatatables_filter_string_column but I was hoping to do something like if wpdatatables_filter_string_column == Name then (add link to the field value). Is there a filter that can allow me to code a condition based on column name? Or column id?
I'm not sure what you're looking for to achieve is possible with built-in features of the plugin, but I did forward the ticket to one of our developers.
On a page such as this https://dclnames.com/lists/doug/ I want to add a condition that modifies specific columns. For example, in this case I want to link each Name to other webpages.
I'm using this code to modify the Buy column values because they are all over 70 characters:
If you have any other issue or question please open new ticket, and we help you out.
I’d like to ask you a favor. Would you mind taking a few minutes to write a review for us, please on this link?
Our free version is the only place where we can have proof for our hard work; your comments are beneficial for others to know what to expect when they’re looking for our plugin.
Thank you in advance. It means a lot to us, and I am looking forward to reading your comment.
This looks like exactly the filter that I've been beating my head against a wall looking for. I just need to make sure that data in a specific column is targeted. Hopefully this (and any other missing filters / actions) will get documented soon. And while you are documenting, could you make the documentation much better by specifying what is passed in the params a bit better (such as object, string, array, etc) and also provide at least some basic php example scripts so it is a lot easier to figure things out?
Sorry for the late response. I will forward your reply to Milan. We'll see to it that more detailed documentation is written in the near future. At the moment we don't have any other examples other than what he wrote here last Monday.
I want to make each value of the Name field clickable, but not the values of the Category field.
I have made the values of the Buy fields clickable by using wpdatatables_filter_string_cell to find values that are greater than 70 characters long. Only the Buy values are longer than 70 characters. However, string length for Name and Category is not unique to those columns. Fields in those columns can be the same length so wpdatatables_filter_string_cell is not something I can use for that condition. Is there a way that I can filter for a certain column? I dont see a filter called wpdatatables_filter_string_column but I was hoping to do something like if wpdatatables_filter_string_column == Name then (add link to the field value). Is there a filter that can allow me to code a condition based on column name? Or column id?
Hello Doug
Sorry for the late response.
I'm not sure what you're looking for to achieve is possible with built-in features of the plugin, but I did forward the ticket to one of our developers.
I'll get back to you as soon as I hear from him.
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
On a page such as this https://dclnames.com/lists/doug/ I want to add a condition that modifies specific columns. For example, in this case I want to link each Name to other webpages.
I'm using this code to modify the Buy column values because they are all over 70 characters:
function wpdatatables_filter_string_cell( $formattedValue, $tableId ){
if($tableId == 7 || $tableId == 8){
if(strlen($formattedValue) > 70) {
But that doesnt work for the other columns. I need some code that works like this:
if(column == Name) {
Hope this helps clarify my question. Looking forward to the response from the dev.
Hi Doug,
I believe you can use this one. It is not added in our docs yet, but we will update it as soon as possible.
Here is the example.
What you will need to do is to replace
with your actual origin header from column settings.(attachment) and of course formattedValue from 'test' 'to what you need.
Kind Regards,
Isidora Markovic
wpDataTables: FAQ | Facebook | Twitter | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Amelia demo sites | Docs
You can try our wpDataTables add-ons before purchase on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables
This is perfect. Exactly what I was looking for. Thanks!
Add it to your docs :)
Hi Doug,
You are welcome.
Yes we will update docs very soon.
If you have any other issue or question please open new ticket, and we help you out.
I’d like to ask you a favor. Would you mind taking a few minutes to write a review for us, please on this link?
Our free version is the only place where we can have proof for our hard work; your comments are beneficial for others to know what to expect when they’re looking for our plugin.
Thank you in advance. It means a lot to us, and I am looking forward to reading your comment.
Best regards.
Kind Regards,
Isidora Markovic
wpDataTables: FAQ | Facebook | Twitter | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Amelia demo sites | Docs
You can try our wpDataTables add-ons before purchase on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables
This looks like exactly the filter that I've been beating my head against a wall looking for. I just need to make sure that data in a specific column is targeted. Hopefully this (and any other missing filters / actions) will get documented soon. And while you are documenting, could you make the documentation much better by specifying what is passed in the params a bit better (such as object, string, array, etc) and also provide at least some basic php example scripts so it is a lot easier to figure things out?
Hello Norm
Sorry for the late response. I will forward your reply to Milan. We'll see to it that more detailed documentation is written in the near future. At the moment we don't have any other examples other than what he wrote here last Monday.
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