I have a table which has addresses of images, i.e. pictures/2014/08/picture01.jpg
How can I display the picture in a column? I've tried the render as image column attribute but nothing displays, just the value stored in the table field.
For image column you can have,
$col["default"] = "<img height=50 src='http://domain.com/images/{images_path_field}'>";
On rendering, it would replace the {field} with the value of that row.
Refer demos/appear/image.php for code sample.
Hi,
In demos/appear/image.php is nothing;
$col = array();
$col[“title”] = “Bild”;
$col[“name”] = “Bild”;
$col[“width”] = “20”; // width on grid
$col[“sortable”] = false; // this column is not sortable
$col[“search”] = false; // this column is not searchable
$col[“editable”] = true;
$col[“link”] = “http://localhost/kalkulation/?Bild={Bild}”;
$col[“linkoptions”] = “target=’_blank'”; // extra params with <a> tag
$col[“default”] = “<img height=50px src=’http://localhost/kalkulation/Images/{Bild}’>”; //img
$cols[] = $col;
My images are in http://localhost/kalkulation/Images folder, but they do not render as image, please help !
I have free version…. should I buy pro?
Thank you Vaclav
Yes, it’s supported in paid version.