Okay
  Public Ticket #3383077
Photos in Column
Closed

Comments

  • mike started the conversation

    I tried to create a table with the images.  Book1.csv is a test.  The .pdf shows the table I need in wordpres.  I'll get the .csv but its very large.  Only need the table, not the header stuff.

    Can this be done?  I could create a table with the text but not the photos.  I couldn't even add that column and see how to manually insert the photos. 

    Attached files:  Book1.csv
      5-18-23 Closed Transactions.pdf

  •  1,819
    Miloš replied


    Hi, mike.

    Yes, you can add images to our tables, there are a couple of different ways.

    For example, if you have source data that has images, such as images in Google Spreadsheets,

    our plugin is not able to directly read images like that,

    you would have to change the format of the cells in the source data in order for our plugin to render images.

    -

    Our “Image” link columns are used to render images in the table, either in full size, or as a link from a thumbnail to a full size image.

    • Rendering rules: If the content of the cells contains a combination of “two sticks” ( || ),

    then 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, for example :

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

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

    • Issues to note:
      • Sometimes some issues may appear when you’re sorting on image columns, since it’s done alphabetically, and alphabetic sorting of HTML typically doesn’t make sense.
      • Please note that the plugin does not create thumbnails (at least for the moment), so you will need to take care of this yourself.
      • If you would like to open full-size images in lightbox, you can use a plugin for that, e.g. WP Lightbox 2  (please note that this is available for tables that aren’t editable)

    Please check more about our Image columns on this Documentation.

    You will also see an example table with images there,

    with a LightBox effect, initially the small thumbnail loads in the table, if we click in an image, the Lighbox opens the full sized version.

    9740662738.png
    1510264662.png


    -

    In case if you need to have an image with text in the same cell, such as on this example of Column "Property", 

    1566725132.png

    that is only possible with using our String Columns.

    They can render Custom HTML, in that case you will have to wrap the image in an HTML image tag, then add the text you need.

    For example, something like :

    <img src="link-to-first-image" height="40"> Additional text in the cell


    And i just wanted to point out that you can try wpDataTables before purchasing

     on our sandbox Demo sites ( you can find links for the main plugin Demo,  

    as well as add-on Demos, in my signature),

    and there is a 15-day money-back guarantee period, 

    so if you purchase the plugin, you can safely fully test it out, and if it doesn't fit your needs you can request and receive a refund in that period. ( same goes for all plugins and add-ons)

    Let me know if you have any additional questions. smile.png


    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