Okay
  Public Ticket #1552089
Doc attachment
Closed

Comments

  • slaouti started the conversation

    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

  •  472
    Isidora replied

    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: FAQFacebookTwitterFront-end and back-end demoDocs

    Amelia: FAQFacebookTwitter |  Amelia demo sites | Docs

    You can try our wpDataTables add-ons before purchase on these sandbox sites:

    Powerful FiltersGravity Forms Integration for wpDataTablesFormidable Forms Integration for wpDataTables

  • slaouti replied

    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.

  •  472
    Isidora replied

    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: FAQFacebookTwitterFront-end and back-end demoDocs

    Amelia: FAQFacebookTwitter |  Amelia demo sites | Docs

    You can try our wpDataTables add-ons before purchase on these sandbox sites:

    Powerful FiltersGravity Forms Integration for wpDataTablesFormidable Forms Integration for wpDataTables

  • slaouti replied

    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

  •   Isidora replied privately