This is how this column type is designed. It will always take column name as table cell value. This can be changed with some custom coding. You can also use Url column type where you can modify name for the link of that url. There is also solution with string column type where you can insert html tags for link.
could you tell me what file should i modify to do that and what should i modify? shouldn't be the default behavior of the plugin cause when i bought it, i thought it will display the name of the pdf and even now i don't see anywhere in your website that the column will behave like this,also the url column type and string column type solution couldn't be done by a simple editor who don't know html especially when he's old.
Please note that customization questions like this one are not covered in the included support for the plugin. Included support covers help with bugs and general inquiries for the plugin features, but not writing custom code. As you're developing some custom solution if you need our assistance we can offer you our paid customization service.
I can gave you a hint that you have to modify file
When you use url column you don't need knowledge of html. If you read in our documentation about url column you can see instructions how to achieve your request. What you need to do is to insert url of that file, "two sticks" and plain text that you need(you don't need html knowledge for this ).
If the content of the cells contains a combination of “two sticks” – || – everything to the left of this combination is used as an URL address for the link, and everything to the right as displayed text. For example:
the solution with two stick, i've done it before, the problem i'm not talking about me but about the editors who can't do it, and also we'll put thousansds of pdfs in the site it wll take time if eveytime we have to copy url and write their name, could you tell me how much approximately it will cost your assistance to write this code
hi, i need to show the name of the pdf in the table like ssh.pdf (attachment type), how i can do that???any code to do it??
thanks,
slaouti
Hi slaouti,
Thank you for your purchase.
This is how this column type is designed. It will always take column name as table cell value. This can be changed with some custom coding. You can also use Url column type where you can modify name for the link of that url. There is also solution with string column type where you can insert html tags for link.
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
could you tell me what file should i modify to do that and what should i modify? shouldn't be the default behavior of the plugin cause when i bought it, i thought it will display the name of the pdf and even now i don't see anywhere in your website that the column will behave like this,also the url column type and string column type solution couldn't be done by a simple editor who don't know html especially when he's old.
Hi slaouti,
Please note that customization questions like this one are not covered in the included support for the plugin. Included support covers help with bugs and general inquiries for the plugin features, but not writing custom code. As you're developing some custom solution if you need our assistance we can offer you our paid customization service.
I can gave you a hint that you have to modify file
wp-content/plugins/wpdatatables/source/class.link.wpdatacolumn.php
When you use url column you don't need knowledge of html. If you read in our documentation about url column you can see instructions how to achieve your request. What you need to do is to insert url of that file, "two sticks" and plain text that you need(you don't need html knowledge for this ).
If the content of the cells contains a combination of “two sticks” – || – everything to the left of this combination is used as an URL address for the link, and everything to the right as displayed text. For example:
https://wpdatatables.com||Check out wpDataTables
will be rendered as:
Check out wpDataTables
And in your case:
http://www.mysite.com/wp-content/uploads/2018/04/myfile.pdf||myfile.pdf
will be rendered as:
myfile.pdf
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
hi, thnks for the reply,
the solution with two stick, i've done it before, the problem i'm not talking about me but about the editors who can't do it, and also we'll put thousansds of pdfs in the site it wll take time if eveytime we have to copy url and write their name, could you tell me how much approximately it will cost your assistance to write this code