Bryan asked 5 years ago

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.

2 Answers
Abu Ghufran answered 5 years ago

For image column you can have,
$col["default"] = "<img height=50 src='{images_path_field}'>";

On rendering, it would replace the {field} with the value of that row.

Refer demos/appear/image.php for code sample.

Vaclav answered 8 months ago


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

Abu Ghufran Staff replied 8 months ago

Yes, it’s supported in paid version.

Your Answer

10 + 0 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.

How useful was this discussion?

Click on a star to rate it!

Average rating / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!