Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82823

Display all the images in table cell from uploadmany plugin

$
0
0

Hello,
I have a table and uploadmany with 2 uploaded images.

"files": {
"0_files": {
"92608": {
"id": "92608",
"filename": null,
"filesize": null,
"web_path": "/uploads/id1302.jpg",
"system_path": "/web/htdocs6/site/home/www/uploads/id1302.jpg"
},
"92609": {
"id": "92609",
"filename": null,
"filesize": null,
"web_path": "/uploads/id1302-1.jpg",
"system_path": "/web/htdocs6/site/home/www/uploads/id1302-1.jpg"
}
}
},

I can not figure out, how can I display the both web_path values in the table view.
The actual table view code looks like the below, but it only shows the count of the upladed photos.

        {
            data: "0_files",
            render: function ( d ) {
                return d.length ?
                    d.length+' image(s)' :
                    'No image';
            },
            title: "Image"
        },

I need an output like this:

<img src="/uploads/id1302.jpg" /><img src="/uploads/id1302-1.jpg" />

I have read all the documentation, but there is no example code of how to do this.
All I have found is that I have to loop through an array with for loop.
But the thread is solved and closed, but I really don't know how to do this.
Can someone explain it through an example?


Viewing all articles
Browse latest Browse all 82823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>