Okay
  Public Ticket #1546795
attachment data type
Closed

Comments

  • slaouti started the conversation

    hi, i've tested the plugin in http://sandbox.wpdatatables.com and i tried to attach pdf docs, but the problem is when i attached different docs they appear all with the same name, same as the column name, is this a plugin problem or the mistake is from me, also i want to know if it's possible to put image in attachment fields instead of showing the name of docs

  • [deleted] replied

    Hi slaouti,
    Thank you for your inquire.

    For attachemnt name plugin is designed that way because files often doesn't have meaningful name or name is too long to be presented in tables. This way you can choose column name like "Attachment" or "Document" and it will be obvious what is behind the link.

    At this moment you can choose to use buttons instead of links for attachment. If you choose that option you have option to choose button label but it will be present on all buttons.

    Second option whould require changing code or writing functions which will manipulate the data and show it in the way you want to. If you are skillful with code I can point you in the right direction. There is also an option to hire one of our developers to help you with plugin customization

     

  • slaouti replied

    hi, thnks for the reply, i want to know also if it's possible to put the image as a link, like a user sees a image and when he clicks on it he goes to a link.


  • [deleted] replied

    Hi slaouti,

    You can do this with column type "image" and choosing editor input type URL link. In Input you need to enter data in following format 

    http://domain.com/thumb.png||http://domain.com/document.pdf
    

    First part is the image link and second part is the document link.

    There is one more option if you want to show same image for all documents and that is to write a little function which will change HTML of the link to show image instead of text.