Okay
  Public Ticket #3725717
Display pictures, thumbnails
Closed

Comments

  • Fritz Reust started the conversation

    Hello We have bought two products from you, wp DataTables (through our webmaster Thinh-Lay Wonesky) and Master-Detail tables (directly). 

    In Media I have arranged/turned the photos correctly. Why are they not shown in the correct way? 

    It would be very useful if the plug-ins could produce thumbnails. Is this planned?

    I like to work with your plug-ins, they really help in production.

    Best regards, Fritz Reust

  •  1,845
    Miloš replied

    Hi Fritz,

    Sorry to disappoint you, but as we noted in the image column documentation:

    The plugin does not create thumbnails (at least for the moment), so you will need to take care of this yourself.


    Our Plugin does not make thumbnails per se, it depends on how you will upload the images, if you will use the ones already in your library or if you will use our table's editing to upload them.

    For example, if you use our 'attachment' editor type for an "image" column type, then it is going to automatically create two files - one as smaller/thumbnail and the other as the full sized image;

    We will elaborate in more details on how our Plugin's logic can be used for this scenario :


    This is the default behaviour/logic how our "uploading" of images works, when you set the Editor Type as 'attachment'.

    If the Column type is set to Image, while you set the Editor Type as "Attachment";

    in that case, the uploader will automatically insert a ‘thumb’ size in the table cell (the resolution is defined in WP config), and link it to a full-size image.


    For example, if you check the cell content after that, our Plugin stores it as this format :

    a combination of “two sticks” – || – everything to the left of this combination is used as a link to the thumbnail, and everything to the right as a link to the full image size:

    http://domain.com/thumb.png||http://domain.com/fullsize.png
    

    You can see more details explained how the attachment Editor Type works, and all other available Editor Typers on this Documentation.

    And here you can see more details explained how our Image Column renders the data.

    As we pointed out there :

    If the “||” combination is not found in the content, the entire content will be used as a link to a full-size image.


    So, you will need to create the resized/smaller version of the image as the thumbnail, then follow the format in the cell as proposed above to achieve that use-case.

    I hope this helps to at least clarify the current capabilities and limitations.




    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia 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