I found documentation for URL link columns but can't figure out how to change the url dynamically based on the information from the mysql table. Thanks.
We are located in Serbia and our working time is from 10:00 to 17:00 CET. business days.
Unfortunately that is not possible with built in features of plugin. It requires some custom solution. But if you are using MySQL query for making wpdatatables then you can use MySQL function CONCAT for example if your table have columns id and name you can try with this
SELECT id, CONCAT("http://www.exemple.com/?id ", table_name.id, "||" , table_name.name ) AS Url_link_with_id FROM `table_name`
And then when you make table in wpdatatables set URL column type for column Url_link_with_id
I have a mysql table that has the following columns:
ID NAME
1 Bob
2 Jeff
3 Gary
I would like to display a WPdatatable with a column that has the value of NAME that is also a hyperlink.
ie
Bob has a hyperlink of www.url.com/?id=1
Jeff has a hyperlink of www.url.com/?id=2
Gary has a hyperlink of www.url.com/?id=3
I found documentation for URL link columns but can't figure out how to change the url dynamically based on the information from the mysql table. Thanks.
HI rjs34,
Thank you for your purchase.
Sorry for late response.
We are located in Serbia and our working time is from 10:00 to 17:00 CET. business days.
Unfortunately that is not possible with built in features of plugin. It requires some custom solution. But if you are using MySQL query for making wpdatatables then you can use MySQL function CONCAT for example if your table have columns id and name you can try with this
SELECT id, CONCAT("http://www.exemple.com/?id ", table_name.id, "||" , table_name.name ) AS Url_link_with_id FROM `table_name`
And then when you make table in wpdatatables set URL column type for column Url_link_with_id
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